From 89bb5b56577e07ea2bf3f439bbdbce8c157ebd54 Mon Sep 17 00:00:00 2001 From: Adithya Vardhan Date: Fri, 6 Jun 2025 11:19:55 +0530 Subject: [PATCH] fix: add prop to not render sidebar trigger in header (#1378) * fix: add prop to not render sidebar trigger in header * chore: rename to addSidebarTrigger --- frontend/src/components/AppHeader.tsx | 10 ++++++++-- .../src/screens/CreateNodeMigrationFileSuccess.tsx | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/AppHeader.tsx b/frontend/src/components/AppHeader.tsx index 0ba3eba7..c0db8167 100644 --- a/frontend/src/components/AppHeader.tsx +++ b/frontend/src/components/AppHeader.tsx @@ -7,13 +7,19 @@ type Props = { description?: string | ReactElement; contentRight?: React.ReactNode; breadcrumb?: boolean; + addSidebarTrigger?: boolean; }; -function AppHeader({ title, description = "", contentRight }: Props) { +function AppHeader({ + title, + description = "", + contentRight, + addSidebarTrigger = true, +}: Props) { return ( <>
- + {addSidebarTrigger && }
diff --git a/frontend/src/screens/CreateNodeMigrationFileSuccess.tsx b/frontend/src/screens/CreateNodeMigrationFileSuccess.tsx index dabd912e..702b3067 100644 --- a/frontend/src/screens/CreateNodeMigrationFileSuccess.tsx +++ b/frontend/src/screens/CreateNodeMigrationFileSuccess.tsx @@ -9,6 +9,7 @@ export function CreateNodeMigrationFileSuccess() {