Skip to content

Commit 79bcd31

Browse files
author
Laurie T. Malau
committed
add feedback form in workspace logs
1 parent 7a18ec3 commit 79bcd31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/dashboard/src/components/WorkspaceLogs.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { useContext, useEffect, useRef } from "react";
99
import { Terminal, ITerminalOptions, ITheme } from "xterm";
1010
import { FitAddon } from "xterm-addon-fit";
1111
import "xterm/css/xterm.css";
12+
import FeedbackComponent from "../feedback-form/FeedbackComponent";
1213
import { ThemeContext } from "../theme-context";
1314

1415
const darkTheme: ITheme = {
@@ -75,6 +76,7 @@ export default function WorkspaceLogs(props: WorkspaceLogsProps) {
7576
useEffect(() => {
7677
if (terminalRef.current && props.errorMessage) {
7778
terminalRef.current.write(`\r\n\u001b[38;5;196m${props.errorMessage}\u001b[0m\r\n`);
79+
<FeedbackComponent isModal={false} />;
7880
}
7981
}, [terminalRef.current, props.errorMessage]);
8082

0 commit comments

Comments
 (0)