summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-10-29 23:42:15 +0800
committerhaishanh <[email protected]>2018-10-30 16:01:33 +0800
commit464a26e2980cdb249591d3e065a080af05133b95 (patch)
tree54dfd00a609632ddf98f3eb62e72175071375a85 /src/components
parent00090fc51ca1ea0968f4a849d7c6ecaab0422b99 (diff)
chore: upgrade and clean up deps
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Loadable.js15
-rw-r--r--src/components/Root.js12
2 files changed, 0 insertions, 27 deletions
diff --git a/src/components/Loadable.js b/src/components/Loadable.js
deleted file mode 100644
index 65843a1..0000000
--- a/src/components/Loadable.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import L from 'react-loadable';
-
-import Loading from './Loading';
-
-// error will passed if the component failed to load
-// const Loading = ({ error }) => <div>loading</div>;
-
-const Loadable = opts =>
- L({
- loading: Loading,
- delay: 200,
- ...opts
- });
-
-export default Loadable;
diff --git a/src/components/Root.js b/src/components/Root.js
index 99b815e..b9d7c42 100644
--- a/src/components/Root.js
+++ b/src/components/Root.js
@@ -17,18 +17,6 @@ import { store } from '../store/configureStore';
// testing...
// import StyleGuide from 'c/StyleGuide';
-// import Loading from 'c/Loading';
-
-// for loading async chunk...not used yet
-
-// import Loadable from './Loadable';
-// const delay = t => new Promise(r => setTimeout(r, t));
-// const AsyncAbout = Loadable({
-// loader: () => delay(800).then(() => import('./About'))
-// });
-// const AsyncHello = Loadable({
-// loader: () => import('./Hello')
-// });
import './Root.scss';
import s0 from './Root.module.scss';