From 4ae54580f30e8eeb7cfb2a4cc3e32e4d4e17c84f Mon Sep 17 00:00:00 2001 From: YuHyun Date: Fri, 29 Dec 2023 02:39:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Terminal=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20className=20prop=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#304] --- packages/frontend/src/components/terminal/Terminal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/terminal/Terminal.tsx b/packages/frontend/src/components/terminal/Terminal.tsx index f1e1c8e..6819343 100644 --- a/packages/frontend/src/components/terminal/Terminal.tsx +++ b/packages/frontend/src/components/terminal/Terminal.tsx @@ -2,6 +2,7 @@ import { type KeyboardEventHandler, forwardRef } from "react"; import { ENTER_KEY } from "../../constants/event"; import type { TerminalContentType } from "../../types/terminalType"; +import classnames from "../../utils/classnames"; import CommandInput, { CommandInputForwardRefType } from "./CommandInput"; import * as styles from "./Terminal.css"; @@ -10,11 +11,12 @@ import TerminalContent from "./TerminalContent"; interface TerminalProps { gitRef: string; contentArray: TerminalContentType[]; + className?: string; onTerminal: (input: string) => void; } const Terminal = forwardRef( - ({ gitRef, contentArray, onTerminal }, ref) => { + ({ gitRef, contentArray, className = "", onTerminal }, ref) => { const handleStandardInput: KeyboardEventHandler = async (event) => { const { key, @@ -36,7 +38,7 @@ const Terminal = forwardRef( }; return ( -
+