Skip to content

Commit

Permalink
chore: story popover content
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed Aug 23, 2023
1 parent 4962ea0 commit 354f847
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/components/ImageStack/__stories__/ImageStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
import {faker} from '@faker-js/faker/locale/en';
import type {Meta, StoryFn} from '@storybook/react';

import {Menu} from '../../Menu';
import {Popover} from '../../Popover';
import {UserAvatar, UserAvatarSize} from '../../UserAvatar';
import {ImageStack} from '../ImageStack';
Expand Down Expand Up @@ -57,16 +56,9 @@ const Template: StoryFn<ComponentType> = (args) => {
<Popover
placement={['bottom', 'bottom-end', 'bottom-start']}
content={
<Menu>
{items.map((item) => (
<Menu.Item
key={item.pk}
href={new URL(item.name, 'https://example.com').toString()}
>
{item.name}
</Menu.Item>
))}
</Menu>
<React.Fragment>
Somehow display list of all other items {items.map(({name}) => name).join(', ')}
</React.Fragment>
}
>
<ImageStack.MoreButton
Expand Down

0 comments on commit 354f847

Please sign in to comment.