Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Commit 76df4dd

Browse files
committed
fix theme
1 parent 8024a19 commit 76df4dd

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/client.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ import useScroll from 'react-router-scroll';
1010
import { ReduxAsyncConnect } from 'redux-connect';
1111
import { syncHistoryWithStore } from 'react-router-redux';
1212
import { AppContainer } from 'react-hot-loader';
13-
import { ThemeProvider } from 'styled-components';
1413

1514
import debug from 'debug';
1615

1716
import config from './config';
18-
import theme from './theme';
1917
import ApiClient from './helpers/ApiClient';
2018
import createStore from './redux/create';
2119
import routes from './routes';
@@ -49,18 +47,16 @@ match(
4947
{ history, routes: routes(store) },
5048
(error, redirectLocation, renderProps) => {
5149
const component = (
52-
<ThemeProvider theme={theme}>
53-
<Router
54-
{...renderProps}
55-
render={props => (
56-
<ReduxAsyncConnect
57-
{...props}
58-
helpers={{ client }}
59-
render={applyRouterMiddleware(useScroll())}
60-
/>
50+
<Router
51+
{...renderProps}
52+
render={props => (
53+
<ReduxAsyncConnect
54+
{...props}
55+
helpers={{ client }}
56+
render={applyRouterMiddleware(useScroll())}
57+
/>
6158
)}
62-
/>
63-
</ThemeProvider>
59+
/>
6460
);
6561

6662
const mountNode = document.getElementById('app');

0 commit comments

Comments
 (0)