mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-04 14:44:55 +01:00
* New: Native Theme Engine Co-Authored-By: Zak Saunders <thezak48@users.noreply.github.com> (cherry picked from commit 2291f3e00eb2ff9268a0b2f49da8dde82ee13c04) * Update CSS for themes Co-authored-by: Qstick <qstick@gmail.com>
31 lines
858 B
JavaScript
31 lines
858 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.Lidarr.instanceName}>
|
|
<Provider store={store}>
|
|
<ConnectedRouter history={history}>
|
|
<ApplyTheme>
|
|
<PageConnector>
|
|
<AppRoutes app={App} />
|
|
</PageConnector>
|
|
</ApplyTheme>
|
|
</ConnectedRouter>
|
|
</Provider>
|
|
</DocumentTitle>
|
|
);
|
|
}
|
|
|
|
App.propTypes = {
|
|
store: PropTypes.object.isRequired,
|
|
history: PropTypes.object.isRequired
|
|
};
|
|
|
|
export default App;
|