mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
937557e214
(cherry picked from commit f35a27449d253260ba9c9fae28909cec8a87b4fe)
36 lines
1004 B
TypeScript
36 lines
1004 B
TypeScript
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
import { ConnectedRouter, ConnectedRouterProps } from 'connected-react-router';
|
|
import React from 'react';
|
|
import DocumentTitle from 'react-document-title';
|
|
import { Provider } from 'react-redux';
|
|
import { Store } from 'redux';
|
|
import Page from 'Components/Page/Page';
|
|
import ApplyTheme from './ApplyTheme';
|
|
import AppRoutes from './AppRoutes';
|
|
|
|
interface AppProps {
|
|
store: Store;
|
|
history: ConnectedRouterProps['history'];
|
|
}
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
function App({ store, history }: AppProps) {
|
|
return (
|
|
<DocumentTitle title={window.Radarr.instanceName}>
|
|
<QueryClientProvider client={queryClient}>
|
|
<Provider store={store}>
|
|
<ConnectedRouter history={history}>
|
|
<ApplyTheme />
|
|
<Page>
|
|
<AppRoutes />
|
|
</Page>
|
|
</ConnectedRouter>
|
|
</Provider>
|
|
</QueryClientProvider>
|
|
</DocumentTitle>
|
|
);
|
|
}
|
|
|
|
export default App;
|