From 91ecdaa5dd1a65ff0ae944896945c0fe4bc23574 Mon Sep 17 00:00:00 2001 From: haishanh Date: Mon, 5 Nov 2018 18:32:16 +0800 Subject: update: convert more components to function ones includes Input, Config, SideBard. also removed react-redux Provider --- src/components/Root.js | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'src/components/Root.js') diff --git a/src/components/Root.js b/src/components/Root.js index 96ae243..e9d9141 100644 --- a/src/components/Root.js +++ b/src/components/Root.js @@ -1,6 +1,5 @@ import React from 'react'; -import { Provider } from 'react-redux'; -import { Provider as StoreProvider } from 'm/store'; +import { Provider } from 'm/store'; import { HashRouter as Router, Route } from 'react-router-dom'; // import { hot } from 'react-hot-loader'; // import createHistory from 'history/createHashHistory'; @@ -26,21 +25,19 @@ window.store = store; const Root = () => ( - - -
- - -
- } /> - } /> - } /> - } /> - } /> -
+ +
+ + } /> +
+ } /> + } /> + } /> + } /> + } />
- - +
+
); // -- cgit v1.3.1