aboutsummaryrefslogtreecommitdiff
path: root/src/pages/settings.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-07 12:21:09 +0900
committerGitHub <noreply@github.com>2017-10-07 12:21:09 +0900
commitd995ab0030522f380d165f309ffc72b582366ddb (patch)
tree69a096e9a8610ae8966af05e91355efdd27ea811 /src/pages/settings.js
parent482206f6c90985011b197623854b8bfbc26ee54c (diff)
parent9fb7bf96be786acfbad97f7c76bc423a401dd657 (diff)
Merge pull request #19 from ueokande/content-and-background-redux-completely
Refactor: full redux on content and background
Diffstat (limited to 'src/pages/settings.js')
-rw-r--r--src/pages/settings.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pages/settings.js b/src/pages/settings.js
index 9bad967..6e25e6f 100644
--- a/src/pages/settings.js
+++ b/src/pages/settings.js
@@ -1,15 +1,15 @@
import './settings.scss';
-import SettingComponent from '../components/setting';
-import settingReducer from '../reducers/setting';
-import * as store from '../store';
+import SettingComponent from 'components/setting';
+import settingReducer from 'reducers/setting';
+import { createStore } from 'store';
-const settingStore = store.createStore(settingReducer);
+const store = createStore(settingReducer);
let settingComponent = null;
-settingStore.subscribe(() => {
+store.subscribe(() => {
settingComponent.update();
});
document.addEventListener('DOMContentLoaded', () => {
- settingComponent = new SettingComponent(document.body, settingStore);
+ settingComponent = new SettingComponent(document.body, store);
});