Use official redux on settings

jh-changes
Shin'ya Ueoka 6 years ago
parent 212076bc5f
commit f2ac75fff8
  1. 12
      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');