diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-03 14:28:45 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-04 20:53:33 +0100 |
commit | b918c9facd157d1dfb24282f6309782a10e02123 (patch) | |
tree | de98663e05e02a4d403e62329fdbce89b1d26c74 | |
parent | c8a5330bdeabbf2c83890ca096281cd09159cc10 (diff) | |
download | git-bug-b918c9facd157d1dfb24282f6309782a10e02123.tar.gz |
Revert restructuring between App.tsx and index.tsx
This should prevent unnecessary merge conflicts.
-rw-r--r-- | webui/src/index.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webui/src/index.tsx b/webui/src/index.tsx index a7f52448..d3591e1a 100644 --- a/webui/src/index.tsx +++ b/webui/src/index.tsx @@ -1,13 +1,20 @@ import { ApolloProvider } from '@apollo/client'; import React from 'react'; import ReactDOM from 'react-dom'; +import { BrowserRouter } from 'react-router-dom'; import App from './App'; import apolloClient from './apollo'; +import Themer from './components/Themer'; +import { defaultLightTheme, defaultDarkTheme } from './themes/index'; ReactDOM.render( <ApolloProvider client={apolloClient}> - <App /> + <BrowserRouter> + <Themer lightTheme={defaultLightTheme} darkTheme={defaultDarkTheme}> + <App /> + </Themer> + </BrowserRouter> </ApolloProvider>, document.getElementById('root') ); |