File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
site/src/components/GroupAvatar Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
- import { Story } from "@storybook/react " ;
2
- import { GroupAvatar , GroupAvatarProps } from "./GroupAvatar " ;
1
+ import { GroupAvatar } from "./GroupAvatar " ;
2
+ import type { Meta , StoryObj } from "@storybook/react " ;
3
3
4
- export default {
4
+ const meta : Meta < typeof GroupAvatar > = {
5
5
title : "components/GroupAvatar" ,
6
6
component : GroupAvatar ,
7
7
} ;
8
8
9
- const Template : Story < GroupAvatarProps > = ( args ) => < GroupAvatar { ...args } /> ;
9
+ export default meta ;
10
+ type Story = StoryObj < typeof GroupAvatar > ;
10
11
11
- export const Example = Template . bind ( { } ) ;
12
- Example . args = {
13
- name : "My Group" ,
14
- avatarURL : "" ,
12
+ export const Example : Story = {
13
+ args : {
14
+ name : "My Group" ,
15
+ avatarURL : "" ,
16
+ } ,
15
17
} ;
You can’t perform that action at this time.
0 commit comments