Skip to content

Commit

Permalink
Fix Header in Pages stories
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Dec 10, 2024
1 parent 2ef327b commit aa90d32
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions storybook/src/pages/amsterdam/common/AppHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import { Grid, Header, PageMenu } from '@amsterdam/design-system-react'
import { Alignment as PageMenuStory } from '../../../components/PageMenu/PageMenu.stories'
import { Header, LinkList } from '@amsterdam/design-system-react'

export const AppHeader = () => (
<Grid>
<Grid.Cell span="all">
<Header
links={<PageMenu alignEnd>{PageMenuStory.args?.children}</PageMenu>}
menu={<button className="ams-header__menu-button">Menu</button>}
/>
</Grid.Cell>
</Grid>
<Header
noMenuButtonOnWideScreen
menuItems={[
<Header.MenuLink key="1" href="#" lang="en">
English
</Header.MenuLink>,
<Header.MenuLink key="2" href="#">
Mijn Amsterdam
</Header.MenuLink>,
<Header.MenuLink key="3" href="#" fixed>
Zoeken
</Header.MenuLink>,
]}
>
<LinkList className="ams-mb--lg">
<LinkList.Link href="#" lang="en">
English
</LinkList.Link>
<LinkList.Link href="#">Mijn Amsterdam</LinkList.Link>
</LinkList>
</Header>
)

0 comments on commit aa90d32

Please sign in to comment.