From 4acbb3ef9a98996f6fa59aba5005993b1e5a7db9 Mon Sep 17 00:00:00 2001 From: onursahal Date: Wed, 11 Dec 2024 08:12:04 +0300 Subject: [PATCH] feat(fe2): collapsible editor tab --- cvdl-editor/fe2/src/components/HomePage.tsx | 86 +++++++++++++-------- 1 file changed, 54 insertions(+), 32 deletions(-) diff --git a/cvdl-editor/fe2/src/components/HomePage.tsx b/cvdl-editor/fe2/src/components/HomePage.tsx index 08dc7a9..fbab8b4 100644 --- a/cvdl-editor/fe2/src/components/HomePage.tsx +++ b/cvdl-editor/fe2/src/components/HomePage.tsx @@ -59,6 +59,7 @@ function App() { const [currentTab, setCurrentTab] = useState< "content-editor" | "layout-editor" | "schema-editor" | "raw-editor" >("content-editor"); + const [isEditorTabCollapsed, setIsEditorTabCollapsed] = useState(false); useEffect(() => { require("../registerStaticFiles.js"); @@ -301,38 +302,59 @@ function App() {
-
- - - - -
+
+ {isEditorTabCollapsed ? ( + <> + + + ) : ( + <> + + + + + + + )} +