From c60d0e7392fc708e961614d6b756a045de74f458 Mon Sep 17 00:00:00 2001
From: Shin'ya Ueoka <ueokande@i-beam.org>
Date: Tue, 30 Apr 2019 14:00:07 +0900
Subject: Rename .js/.jsx to .ts/.tsx

---
 src/settings/index.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src/settings/index.tsx

(limited to 'src/settings/index.tsx')

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
+  );
+});
-- 
cgit v1.2.3

