Repository navigation
fix(docsite): add footer destinations to the SideNav showcase #11267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
404c942
f8057a4
7cc277f
3090e01
f69121a
57ac2f4
3ed4ae4
993b834
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [fix] The SideNav showcase now includes support and settings destinations in its footer so the Overview preview demonstrates the complete navigation surface. | ||
|
|
||
| @bezabyte |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| 'use client'; | ||
|
|
||
| import type {ComponentProps} from 'react'; | ||
| import {HelpIcon, SettingsIcon} from '@astryxdesign/template-icons'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Optional, non-blocking: import {
ChartIcon,
DocumentIcon,
FolderIcon,
HelpIcon,
HomeIcon,
SettingsIcon,
} from '@astryxdesign/template-icons';Analytics and All Documents then take |
||
| import { | ||
| SideNav, | ||
| SideNavHeading, | ||
|
|
@@ -80,7 +81,14 @@ function DocumentTextIcon(props: ComponentProps<'svg'>) { | |
|
|
||
| export default function SideNavShowcase() { | ||
| return ( | ||
| <SideNav header={<SideNavHeading heading="My App" headingHref="/" />}> | ||
| <SideNav | ||
| header={<SideNavHeading heading="My App" headingHref="/" />} | ||
| footer={ | ||
| <SideNavSection title="Support" isHeaderHidden> | ||
| <SideNavItem label="Help & docs" icon={HelpIcon} href="/help" /> | ||
| <SideNavItem label="Settings" icon={SettingsIcon} href="/settings" /> | ||
| </SideNavSection> | ||
| }> | ||
| <SideNavSection title="Main"> | ||
| <SideNavItem | ||
| label="Dashboard" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.