mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-20 01:42:35 +01:00
8b79b5afbf
(cherry picked from commit cae134ec7b331d1c906343716472f3d043614b2c) Closes #9998
31 lines
830 B
JavaScript
31 lines
830 B
JavaScript
import { ConnectedRouter } from 'connected-react-router';
|
|
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import DocumentTitle from 'react-document-title';
|
|
import { Provider } from 'react-redux';
|
|
import PageConnector from 'Components/Page/PageConnector';
|
|
import ApplyTheme from './ApplyTheme';
|
|
import AppRoutes from './AppRoutes';
|
|
|
|
function App({ store, history }) {
|
|
return (
|
|
<DocumentTitle title={window.Radarr.instanceName}>
|
|
<Provider store={store}>
|
|
<ConnectedRouter history={history}>
|
|
<ApplyTheme />
|
|
<PageConnector>
|
|
<AppRoutes app={App} />
|
|
</PageConnector>
|
|
</ConnectedRouter>
|
|
</Provider>
|
|
</DocumentTitle>
|
|
);
|
|
}
|
|
|
|
App.propTypes = {
|
|
store: PropTypes.object.isRequired,
|
|
history: PropTypes.object.isRequired
|
|
};
|
|
|
|
export default App;
|