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
This commit is contained in:
Adithya Vardhan 2025-06-06 11:19:55 +05:30 committed by GitHub
parent 82f67c8968
commit 89bb5b5657
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -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 (
<>
<header className="flex flex-row items-center border-b border-border pb-4 gap-2">
<SidebarTrigger className="-ml-1 md:hidden" />
{addSidebarTrigger && <SidebarTrigger className="-ml-1 md:hidden" />}
<Separator orientation="vertical" className="mr-2 h-4 md:hidden" />
<div className="flex flex-col flex-1">
<div className="flex justify-between items-center">

View file

@ -9,6 +9,7 @@ export function CreateNodeMigrationFileSuccess() {
<AppHeader
title="Alby Hub Migration File Saved"
description="You're ready to move your node to another machine"
addSidebarTrigger={false}
/>
<Card>
<CardContent className="pt-6">