aboutsummaryrefslogtreecommitdiff
path: root/src/console/index.tsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-04-05 23:05:23 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-04-06 21:47:04 +0900
commit21f863d76fbb5ed752ad529f8fbe33e75460027e (patch)
tree9e90a22ec44fbbf33c14bddfd6d7ea22e464581b /src/console/index.tsx
parent9041bae89f54efce14239768e642f99d1f0b35d1 (diff)
Replace colorscheme state with React Hooks
Diffstat (limited to 'src/console/index.tsx')
-rw-r--r--src/console/index.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/console/index.tsx b/src/console/index.tsx
index 4a5368b..71f2a27 100644
--- a/src/console/index.tsx
+++ b/src/console/index.tsx
@@ -6,6 +6,7 @@ import AppContext from "./components/AppContext";
import "./index.css";
import React from "react";
import ReactDOM from "react-dom";
+import ColorSchemeProvider from "./colorscheme/providers";
const wrapAsync = <T extends unknown>(
dispatch: React.Dispatch<T>
@@ -48,7 +49,9 @@ const RootComponent: React.FC = () => {
return (
<AppContext.Provider value={{ state, dispatch: wrapAsync(dispatch) }}>
- <Console />
+ <ColorSchemeProvider>
+ <Console />
+ </ColorSchemeProvider>
</AppContext.Provider>
);
};