From 79bcd31eb587a695b3b736e98208c0eedce38f0f Mon Sep 17 00:00:00 2001 From: "Laurie T. Malau" Date: Mon, 23 May 2022 10:57:21 +0000 Subject: [PATCH] add feedback form in workspace logs --- components/dashboard/src/components/WorkspaceLogs.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/dashboard/src/components/WorkspaceLogs.tsx b/components/dashboard/src/components/WorkspaceLogs.tsx index 6b6bcf3cf328a1..d37c8a586945c2 100644 --- a/components/dashboard/src/components/WorkspaceLogs.tsx +++ b/components/dashboard/src/components/WorkspaceLogs.tsx @@ -9,6 +9,7 @@ import { useContext, useEffect, useRef } from "react"; import { Terminal, ITerminalOptions, ITheme } from "xterm"; import { FitAddon } from "xterm-addon-fit"; import "xterm/css/xterm.css"; +import FeedbackComponent from "../feedback-form/FeedbackComponent"; import { ThemeContext } from "../theme-context"; const darkTheme: ITheme = { @@ -75,6 +76,7 @@ export default function WorkspaceLogs(props: WorkspaceLogsProps) { useEffect(() => { if (terminalRef.current && props.errorMessage) { terminalRef.current.write(`\r\n\u001b[38;5;196m${props.errorMessage}\u001b[0m\r\n`); + ; } }, [terminalRef.current, props.errorMessage]);