aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/index.tsx
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-03-07 22:09:41 +0100
committerGitHub <noreply@github.com>2021-03-07 22:09:41 +0100
commit501e1678b2af280300a4c35d762c54379e3142e4 (patch)
tree8577cf83b4d661184b9e38b17fee9652daf4b153 /webui/src/index.tsx
parent2a21b02af157275e20c4ce6d308b45f9a3d7ebaf (diff)
parentc2c5c40e752663e238bdd29c54d3a5634ba9615c (diff)
downloadgit-bug-501e1678b2af280300a4c35d762c54379e3142e4.tar.gz
Merge pull request #588 from GlancingMind/upstream-dark-colorscheme
Dark Colorscheme
Diffstat (limited to 'webui/src/index.tsx')
-rw-r--r--webui/src/index.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/webui/src/index.tsx b/webui/src/index.tsx
index f07b869d..d3591e1a 100644
--- a/webui/src/index.tsx
+++ b/webui/src/index.tsx
@@ -3,18 +3,17 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
-import ThemeProvider from '@material-ui/styles/ThemeProvider';
-
import App from './App';
import apolloClient from './apollo';
-import theme from './theme';
+import Themer from './components/Themer';
+import { defaultLightTheme, defaultDarkTheme } from './themes/index';
ReactDOM.render(
<ApolloProvider client={apolloClient}>
<BrowserRouter>
- <ThemeProvider theme={theme}>
+ <Themer lightTheme={defaultLightTheme} darkTheme={defaultDarkTheme}>
<App />
- </ThemeProvider>
+ </Themer>
</BrowserRouter>
</ApolloProvider>,
document.getElementById('root')