From 20ddfe251746f3916898e8b2c8155bb635164565 Mon Sep 17 00:00:00 2001 From: Ishaan Dey Date: Thu, 18 Apr 2024 15:38:38 -0400 Subject: [PATCH] selected tab ui --- frontend/components/editor/index.tsx | 4 ++-- frontend/components/ui/tab.tsx | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/components/editor/index.tsx b/frontend/components/editor/index.tsx index fef8fe7..4e54482 100644 --- a/frontend/components/editor/index.tsx +++ b/frontend/components/editor/index.tsx @@ -70,7 +70,7 @@ export default function CodeEditor() { defaultSize={60} >
- index.html + index.html style.css
@@ -130,7 +130,7 @@ export default function CodeEditor() { className="p-2 flex flex-col" >
- Node + Node Console
diff --git a/frontend/components/ui/tab.tsx b/frontend/components/ui/tab.tsx index 48a198e..68ae607 100644 --- a/frontend/components/ui/tab.tsx +++ b/frontend/components/ui/tab.tsx @@ -5,10 +5,12 @@ import { Button } from "./button" export default function Tab({ children, + selected, onClick, onClose, }: { children: React.ReactNode + selected?: boolean onClick?: () => void onClose?: () => void }) { @@ -16,8 +18,10 @@ export default function Tab({