aboutsummaryrefslogtreecommitdiff
path: root/src/settings/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/index.tsx')
-rw-r--r--src/settings/index.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/settings/index.tsx b/src/settings/index.tsx
new file mode 100644
index 0000000..6aec7a0
--- /dev/null
+++ b/src/settings/index.tsx
@@ -0,0 +1,22 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import SettingsComponent from './components';
+import reducer from './reducers/setting';
+import { Provider } from 'react-redux';
+import promise from 'redux-promise';
+import { createStore, applyMiddleware } from 'redux';
+
+const store = createStore(
+ reducer,
+ applyMiddleware(promise),
+);
+
+document.addEventListener('DOMContentLoaded', () => {
+ let wrapper = document.getElementById('vimvixen-settings');
+ ReactDOM.render(
+ <Provider store={store}>
+ <SettingsComponent store={store} />
+ </Provider>,
+ wrapper
+ );
+});