forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
32 lines (30 loc) · 1.09 KB
/
index.js
File metadata and controls
32 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react'
import { ThemeProvider } from '@chakra-ui/core'
import { I18nProvider } from '@lingui/react'
import { i18n } from '@lingui/core'
import ReactDOM from 'react-dom'
import App from './App'
import * as serviceWorker from './serviceWorker'
import { BrowserRouter as Router } from 'react-router-dom'
import canada from './theme/canada'
import { UserStateProvider } from './UserState'
import { client } from './client'
import { ApolloProvider } from '@apollo/client'
ReactDOM.render(
<UserStateProvider initialState={{ userName: null, jwt: null, tfa: null }}>
<ApolloProvider client={client}>
<ThemeProvider theme={canada}>
<I18nProvider i18n={i18n}>
<Router>
<App />
</Router>
</I18nProvider>
</ThemeProvider>
</ApolloProvider>
</UserStateProvider>,
document.getElementById('root'),
)
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister()