diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-08 11:38:48 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-08 11:44:37 +0900 |
commit | f2ac75fff8e112bd14bc391c2b40a565a14c65f5 (patch) | |
tree | 3afeaa61d1c62d15749bf2e2db8ab99aefb4fae3 /src/settings | |
parent | 212076bc5fb4800889d6802e5280dc0620a852ec (diff) |
Use official redux on settings
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/index.jsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/settings/index.jsx b/src/settings/index.jsx index eb251b4..8097d31 100644 --- a/src/settings/index.jsx +++ b/src/settings/index.jsx @@ -1,10 +1,14 @@ import { h, render } from 'preact'; import SettingsComponent from './components'; -import reducer from 'settings/reducers/setting'; -import Provider from 'shared/store/provider'; -import { createStore } from 'shared/store'; +import reducer from './reducers/setting'; +import { Provider } from 'preact-redux'; +import promise from 'redux-promise'; +import { createStore, applyMiddleware } from 'redux'; -const store = createStore(reducer); +const store = createStore( + reducer, + applyMiddleware(promise), +); document.addEventListener('DOMContentLoaded', () => { let wrapper = document.getElementById('vimvixen-settings'); |