Skip to content

Commit 92fe723

Browse files
committed
Refactor GroupAvatar stories
1 parent dd8000f commit 92fe723

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
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";
33

4-
export default {
4+
const meta: Meta<typeof GroupAvatar> = {
55
title: "components/GroupAvatar",
66
component: GroupAvatar,
77
};
88

9-
const Template: Story<GroupAvatarProps> = (args) => <GroupAvatar {...args} />;
9+
export default meta;
10+
type Story = StoryObj<typeof GroupAvatar>;
1011

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+
},
1517
};

0 commit comments

Comments
 (0)