diff options
author | Vitaly Takmazov | 2022-10-31 22:48:30 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | 8887e1b51565b992f34c955c459125eb85b28483 (patch) | |
tree | 7fc8130f523014864e2d60aa9628e7a7ee7e7dd5 /vnext/src/index.js | |
parent | fc96a9a206a825171da87a7f23cc2ea16b1d645d (diff) |
`useVisitor` hook
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r-- | vnext/src/index.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js index 5f3c262e..3c354826 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -4,6 +4,7 @@ import { BrowserRouter } from 'react-router-dom'; import { CookiesProvider } from 'react-cookie'; import './index.css'; +import { VisitorProvider } from './ui/VisitorContext'; const Juick = lazy(() => import('./App')); @@ -20,11 +21,13 @@ const props = window.__PROPS__ ? JSON.parse(fromBinary(window.__PROPS__)) : {}; const JuickApp = () => ( <StrictMode> - <CookiesProvider> - <BrowserRouter> - <Juick {...props} /> - </BrowserRouter> - </CookiesProvider> + <VisitorProvider> + <CookiesProvider> + <BrowserRouter> + <Juick {...props} /> + </BrowserRouter> + </CookiesProvider> + </VisitorProvider> </StrictMode> ); |