Skip to content

Commit c2dfa95

Browse files
committed
fix: example intranet page
1 parent 5603b86 commit c2dfa95

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

src/pages/Intranet.stories.tsx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const Primary: Story = {
112112
sidebarLeft: {
113113
title: 'Playground',
114114
subTitle: 'Airview',
115-
mainNav: [
115+
mainNav: [ { name: 'top nav', nav: [
116116
{
117117
label: 'AWS',
118118
url: '#',
@@ -197,7 +197,34 @@ export const Primary: Story = {
197197
url: '#',
198198
},
199199
],
200+
},]},
201+
{ name: 'other nav', nav: [
202+
203+
{
204+
label: 'Documentation',
205+
url: '#',
206+
icon: BookOpen,
207+
links: [
208+
{
209+
label: 'Introduction',
210+
url: '#',
211+
},
212+
{
213+
label: 'Get Started',
214+
url: '#',
215+
},
216+
{
217+
label: 'Tutorials',
218+
url: '#',
219+
},
220+
{
221+
label: 'Changelog',
222+
url: '#',
223+
},
224+
],
200225
},
226+
,]}
227+
201228
],
202229
secondaryNav: [
203230
{
@@ -212,6 +239,7 @@ export const Primary: Story = {
212239
},
213240
],
214241
onSidebarMenu: fn(),
242+
215243
},
216244
sidebarRight: {
217245
tableOfContents: [

src/pages/Intranet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
} from '@/components//ui/sidebar'
3838

3939
import { SidebarRight } from '@/components/Menus/SidebarRight'
40-
import { SidebarLeft } from '@/components//Menus/SidebarLeft'
40+
import { SidebarLeftMulti } from '@/components//Menus/SidebarLeftMulti'
4141

4242
// import GithubControl from '@/components//Editor/GithubControl'
4343
import { Toaster } from '@/components//ui/toaster'
@@ -141,7 +141,7 @@ export default function Intranet({ ...args }) {
141141
// <div className="flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain">
142142
<div>
143143
<SidebarProvider className="fixed top-16 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip">
144-
<SidebarLeft {...args.sidebarLeft} className="flex-none" />
144+
<SidebarLeftMulti {...args.sidebarLeft} className="flex-none" />
145145
<SidebarInset className="grow overflow-hidden">
146146
<header className="flex h-16 shrink-0 items-center gap-2">
147147
<div className="flex items-center gap-2 px-4">

0 commit comments

Comments
 (0)