aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/index.tsx
blob: d3591e1a7d629573b200fc2e8d4625e5b2832f5e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                
                          
                                 
                                                 
 

                                    

                                                                     

                
                                        




                                                                          
                    
                                 
  
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}>
    <BrowserRouter>
      <Themer lightTheme={defaultLightTheme} darkTheme={defaultDarkTheme}>
        <App />
      </Themer>
    </BrowserRouter>
  </ApolloProvider>,
  document.getElementById('root')
);