mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
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:
parent
82f67c8968
commit
89bb5b5657
2 changed files with 9 additions and 2 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue