mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
* New: Native Theme Engine Co-Authored-By: Zak Saunders <thezak48@users.noreply.github.com> (cherry picked from commit 2291f3e00eb2ff9268a0b2f49da8dde82ee13c04) * Update CSS for themes * Fixup CSS values * Fixup remove duped Color-Impaired setting * Fixup Link Colors Co-Authored-By: Qstick <qstick@gmail.com>
32 lines
859 B
JavaScript
32 lines
859 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.Readarr.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;
|