-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.js
More file actions
31 lines (25 loc) · 820 Bytes
/
main.js
File metadata and controls
31 lines (25 loc) · 820 Bytes
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
import { createRoot } from 'react-dom/client'
import { ApiProvider } from '@reduxjs/toolkit/query/react'
import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3'
import { ThemeProvider } from 'styled-components'
import { App } from './client/App'
import { GlobalStyle } from './client/styles'
import { api } from './api'
function main() {
const container = document.getElementById('main')
const root = createRoot(container)
root.render(
<ApiProvider api={api}>
<GoogleReCaptchaProvider
reCaptchaKey={process.env.ENTERPRISE_RECAPTCHA_SITE_KEY}
useEnterprise
>
<ThemeProvider theme={{ fontFamily: 'Open Sans, sans-serif' }}>
<GlobalStyle />
<App />
</ThemeProvider>
</GoogleReCaptchaProvider>
</ApiProvider>
)
}
main()