docs(sidebar): Fix sidebar toggle text for consistent behavior (#5428)

This commit is contained in:
JEM
2024-10-21 02:45:11 -05:00
committed by GitHub
parent 3febcdc523
commit 182f2083cd
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ export default function AppSidebar() {
variant="ghost"
>
{open ? <PanelLeftClose /> : <PanelLeftOpen />}
<span>{open ? "Open" : "Close"} Sidebar</span>
<span>{open ? "Close" : "Open"} Sidebar</span>
</Button>
</header>
</SidebarInset>

View File

@@ -87,7 +87,7 @@ export default function AppSidebar() {
variant="ghost"
>
{open ? <PanelLeftClose /> : <PanelLeftOpen />}
<span>{open ? "Open" : "Close"} Sidebar</span>
<span>{open ? "Close" : "Open"} Sidebar</span>
</Button>
</header>
</SidebarInset>