diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-04-05 23:05:23 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-04-06 21:47:04 +0900 |
commit | 21f863d76fbb5ed752ad529f8fbe33e75460027e (patch) | |
tree | 9e90a22ec44fbbf33c14bddfd6d7ea22e464581b /src/console/index.tsx | |
parent | 9041bae89f54efce14239768e642f99d1f0b35d1 (diff) |
Replace colorscheme state with React Hooks
Diffstat (limited to 'src/console/index.tsx')
-rw-r--r-- | src/console/index.tsx | 5 |
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> ); }; |