Skip to content

Commit

Permalink
Remove Header example from Avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Dec 10, 2024
1 parent 3774a33 commit 2ef327b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
4 changes: 0 additions & 4 deletions storybook/src/components/Avatar/Avatar.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ Make sure to scale the image down to around 100 pixels to prevent unnecessary da
A user icon displays if no label and image are provided.

<Canvas of={AvatarStories.FallbackIcon} />

### In a Header

<Canvas of={AvatarStories.InAHeader} />
23 changes: 0 additions & 23 deletions storybook/src/components/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* Copyright Gemeente Amsterdam
*/

import { Header, PageMenu } from '@amsterdam/design-system-react'
import { Avatar } from '@amsterdam/design-system-react/src'
import { SearchIcon } from '@amsterdam/design-system-react-icons'
import { Meta, StoryObj } from '@storybook/react'

const meta = {
Expand Down Expand Up @@ -36,24 +34,3 @@ export const FallbackIcon: Story = {
label: '',
},
}

export const InAHeader: Story = {
args: {
label: 'DS',
},
render: (args) => (
<Header
links={
<PageMenu alignEnd>
<PageMenu.Link href="#">Contact</PageMenu.Link>
<PageMenu.Link href="#" icon={SearchIcon}>
Zoeken
</PageMenu.Link>
<li>
<Avatar {...args} />
</li>
</PageMenu>
}
/>
),
}

0 comments on commit 2ef327b

Please sign in to comment.