import { BrowserRouter, Route, Switch } from 'react-router-dom'; import { getConfig, setTheme } from './store/actions'; // Redux import { store } from './store/store'; import { Provider } from 'react-redux'; import Home from './components/Home/Home'; import Apps from './components/Apps/Apps'; import Settings from './components/Settings/Settings'; import Bookmarks from './components/Bookmarks/Bookmarks'; import NotificationCenter from './components/NotificationCenter/NotificationCenter'; // Get config pairs from database store.dispatch(getConfig()); if (localStorage.theme) { store.dispatch(setTheme(localStorage.theme)); } const App = (): JSX.Element => { return ( ); } export default App;