From 2b1079525b86dad45df11e6ad29a89989a6416ab Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 4 Apr 2021 16:44:47 +0900 Subject: Separate Message to InfoMessage and ErrorMessage --- src/console/components/Console.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/console/components/Console.tsx') diff --git a/src/console/components/Console.tsx b/src/console/components/Console.tsx index fa91336..951b627 100644 --- a/src/console/components/Console.tsx +++ b/src/console/components/Console.tsx @@ -1,7 +1,8 @@ import React from "react"; import Input from "./console/Input"; import Completion from "./console/Completion"; -import Message from "./console/Message"; +import InfoMessage from "./InfoMessage"; +import ErrorMessage from "./ErrorMessage"; import * as consoleActions from "../../console/actions/console"; import CommandLineParser, { InputPhase, @@ -199,10 +200,15 @@ const Console: React.FC = () => { ); case "info": + return ( + + {state.messageText} + + ); case "error": return ( - {state.messageText} + {state.messageText} ); default: -- cgit v1.2.3