From 4cb17031d11d76275de51e31218fb87359e7d826 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Fri, 6 Oct 2017 23:55:52 +0900 Subject: [wip] remove STATE_UPDATE --- src/components/console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/console.js') diff --git a/src/components/console.js b/src/components/console.js index 177cfe5..3a7f88b 100644 --- a/src/components/console.js +++ b/src/components/console.js @@ -70,8 +70,8 @@ export default class ConsoleComponent { }); } - // TODO use store/reducer to update state. - update(state) { + update() { + let state = this.store.getState().console; if (!this.prevState.commandShown && state.commandShown) { this.showCommand(state.commandText); } else if (!state.commandShown) { -- cgit v1.2.3