From 21f863d76fbb5ed752ad529f8fbe33e75460027e Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 5 Apr 2021 23:05:23 +0900 Subject: Replace colorscheme state with React Hooks --- src/console/reducers/console.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/console/reducers') diff --git a/src/console/reducers/console.ts b/src/console/reducers/console.ts index 3acd0e9..37f1efc 100644 --- a/src/console/reducers/console.ts +++ b/src/console/reducers/console.ts @@ -1,8 +1,6 @@ -import ColorScheme from "../../shared/ColorScheme"; import { CONSOLE_HIDE, CONSOLE_HIDE_COMMAND, - CONSOLE_SET_COLORSCHEME, CONSOLE_SET_CONSOLE_TEXT, CONSOLE_SHOW_COMMAND, CONSOLE_SHOW_ERROR, @@ -15,14 +13,12 @@ export interface State { mode: string; messageText: string; consoleText: string; - colorscheme: ColorScheme; } export const defaultState = { mode: "", messageText: "", consoleText: "", - colorscheme: ColorScheme.System, }; // eslint-disable-next-line max-lines-per-function @@ -53,11 +49,6 @@ export default function reducer( }; case CONSOLE_SET_CONSOLE_TEXT: return { ...state, consoleText: action.consoleText }; - case CONSOLE_SET_COLORSCHEME: - return { - ...state, - colorscheme: action.colorscheme, - }; default: return state; } -- cgit v1.2.3