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/reducers | |
parent | 9041bae89f54efce14239768e642f99d1f0b35d1 (diff) |
Replace colorscheme state with React Hooks
Diffstat (limited to 'src/console/reducers')
-rw-r--r-- | src/console/reducers/console.ts | 9 |
1 files changed, 0 insertions, 9 deletions
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; } |