-
-
Save LukeSmetham/7d3708f0c3f43d712fb2d8d3840e2766 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
// Router // | |
import { Router, Switch, Route } from 'react-router-dom'; | |
import history from 'utils/history'; | |
// Styles // | |
import { ThemeProvider } from 'styled-components'; | |
import theme from 'styles/theme'; | |
import GlobalStyles from 'styles/global'; | |
import '@voxeet/react-components/dist/voxeet-react-components.css'; | |
// Screens // | |
import Conference from 'screens/Conference'; | |
// Redux // | |
import { Provider } from 'react-redux'; | |
import createStore from 'data/createStore'; | |
const store = createStore(); | |
function App() { | |
return ( | |
<ThemeProvider theme={theme}> | |
<Provider store={store}> | |
<Router history={history}> | |
<> | |
<Switch> | |
<Route path='/:conferenceAlias' component={Conference} /> | |
</Switch> | |
<GlobalStyles /> | |
</> | |
</Router> | |
</Provider> | |
</ThemeProvider> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment