Skip to content

Commit e3d9a1c

Browse files
committed
fix user card sotry
1 parent d6c10ae commit e3d9a1c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/uui-card-user/lib/uui-card-user.story.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import { Story } from '@storybook/web-components';
1+
import { StoryFn } from '@storybook/web-components';
22
import { html } from 'lit';
3+
import '@umbraco-ui/uui-avatar/lib';
4+
35
import './index';
46

57
export default {
@@ -19,7 +21,7 @@ const cardContent = html`
1921
<div>Has not logged in yet</div>
2022
`;
2123

22-
const Template: Story = props => html`
24+
const Template: StoryFn = props => html`
2325
<uui-card-user
2426
name=${props.name}
2527
?selectable=${props.selectable}
@@ -42,7 +44,7 @@ AAAOverview.args = {
4244
disabled: false,
4345
};
4446

45-
export const Selectable: Story = Template.bind({});
47+
export const Selectable: StoryFn = Template.bind({});
4648
Selectable.args = {
4749
selectable: true,
4850
};
@@ -59,7 +61,7 @@ Selectable.parameters = {
5961
},
6062
};
6163

62-
export const SelectOnly: Story = Template.bind({});
64+
export const SelectOnly: StoryFn = Template.bind({});
6365
SelectOnly.args = {
6466
selectable: true,
6567
selectOnly: true,
@@ -77,7 +79,7 @@ SelectOnly.parameters = {
7779
},
7880
};
7981

80-
export const Disabled: Story = Template.bind({});
82+
export const Disabled: StoryFn = Template.bind({});
8183
Disabled.args = {
8284
disabled: true,
8385
};
@@ -94,7 +96,7 @@ Disabled.parameters = {
9496
},
9597
};
9698

97-
export const Error: Story = Template.bind({});
99+
export const Error: StoryFn = Template.bind({});
98100
Error.args = {
99101
error: true,
100102
};
@@ -111,7 +113,7 @@ Error.parameters = {
111113
},
112114
};
113115

114-
export const Actions: Story = () => html`
116+
export const Actions: StoryFn = () => html`
115117
<uui-card-user name="John Rabbit">
116118
<uui-action-bar slot="actions">
117119
<uui-button label="Remove">Remove</uui-button>
@@ -136,7 +138,7 @@ Actions.parameters = {
136138
},
137139
};
138140

139-
export const Tags: Story = () => html`
141+
export const Tags: StoryFn = () => html`
140142
<uui-card-user name="John Rabbit">
141143
<uui-tag slot="tag" size="s" color="danger">Disabled</uui-tag>
142144

0 commit comments

Comments
 (0)