diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-04 21:30:57 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-04 21:30:57 +0900 |
commit | 6594841b1d1f082107bdb1489f02d3c99cff8ffa (patch) | |
tree | 594f2eb56b43143e5dba30317a9e8a3cbf578051 /src/pages/settings.js | |
parent | 482206f6c90985011b197623854b8bfbc26ee54c (diff) |
use createStore short-hand method
Diffstat (limited to 'src/pages/settings.js')
-rw-r--r-- | src/pages/settings.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pages/settings.js b/src/pages/settings.js index 9bad967..076d23d 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 { 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); }); |