Skip to content

Commit 164f29d

Browse files
committed
chore: format lint
1 parent 05f586e commit 164f29d

File tree

2 files changed

+61
-61
lines changed

2 files changed

+61
-61
lines changed

infrastructure/eid-wallet/src/lib/ui/Button/ButtonAction.stories.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@ import ButtonAction from "./ButtonAction.svelte";
33
import { ButtonText } from "./Button.stories.snippet.svelte";
44

55
export default {
6-
title: "UI/ButtonAction",
7-
component: ButtonAction,
8-
tags: ["autodocs"],
9-
render: (args: {
10-
Component: ButtonAction;
11-
props: ComponentProps<typeof ButtonAction>;
12-
}) => ({
13-
Component: ButtonAction,
14-
props: args,
15-
}),
6+
title: "UI/ButtonAction",
7+
component: ButtonAction,
8+
tags: ["autodocs"],
9+
render: (args: {
10+
Component: ButtonAction;
11+
props: ComponentProps<typeof ButtonAction>;
12+
}) => ({
13+
Component: ButtonAction,
14+
props: args,
15+
}),
1616
};
1717

1818
export const Solid = {
19-
args: { variant: "solid", children: ButtonText },
19+
args: { variant: "solid", children: ButtonText },
2020
};
2121

2222
export const Soft = {
23-
args: { variant: "soft", children: ButtonText },
23+
args: { variant: "soft", children: ButtonText },
2424
};
2525

2626
export const Danger = {
27-
args: { variant: "danger", children: ButtonText },
27+
args: { variant: "danger", children: ButtonText },
2828
};
2929

3030
export const DangerSoft = {
31-
args: { variant: "danger-soft", children: ButtonText },
31+
args: { variant: "danger-soft", children: ButtonText },
3232
};
3333

3434
export const Loading = {
35-
args: { isLoading: true, children: ButtonText },
35+
args: { isLoading: true, children: ButtonText },
3636
};
3737

3838
export const BlockingClick = {
39-
args: {
40-
blockingClick: true,
41-
children: ButtonText,
42-
callback: async () => {
43-
await new Promise((resolve) => setTimeout(resolve, 2000));
44-
},
45-
},
39+
args: {
40+
blockingClick: true,
41+
children: ButtonText,
42+
callback: async () => {
43+
await new Promise((resolve) => setTimeout(resolve, 2000));
44+
},
45+
},
4646
};

infrastructure/eid-wallet/src/lib/ui/Button/ButtonIcon.stories.ts

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,52 @@ import { FlashlightIcon } from "@hugeicons/core-free-icons";
33
import type { ComponentProps } from "svelte";
44

55
export default {
6-
title: "UI/ButtonIcon",
7-
component: ButtonIcon,
8-
tags: ["autodocs"],
9-
render: (args: {
10-
Component: ButtonIcon<{ icon: typeof FlashlightIcon }>;
11-
props: ComponentProps<typeof ButtonIcon>;
12-
}) => ({
13-
Component: ButtonIcon,
14-
props: args,
15-
}),
6+
title: "UI/ButtonIcon",
7+
component: ButtonIcon,
8+
tags: ["autodocs"],
9+
render: (args: {
10+
Component: ButtonIcon<{ icon: typeof FlashlightIcon }>;
11+
props: ComponentProps<typeof ButtonIcon>;
12+
}) => ({
13+
Component: ButtonIcon,
14+
props: args,
15+
}),
1616
};
1717

1818
export const Default = {
19-
render: () => ({
20-
Component: ButtonIcon,
21-
props: {
22-
variant: "white",
23-
ariaLabel: "Default button",
24-
size: "md",
25-
icon: FlashlightIcon,
26-
},
27-
}),
19+
render: () => ({
20+
Component: ButtonIcon,
21+
props: {
22+
variant: "white",
23+
ariaLabel: "Default button",
24+
size: "md",
25+
icon: FlashlightIcon,
26+
},
27+
}),
2828
};
2929

3030
export const Loading = {
31-
render: () => ({
32-
Component: ButtonIcon,
33-
props: {
34-
variant: "white",
35-
ariaLabel: "Loading button",
36-
size: "md",
37-
icon: FlashlightIcon,
38-
isLoading: true,
39-
},
40-
}),
31+
render: () => ({
32+
Component: ButtonIcon,
33+
props: {
34+
variant: "white",
35+
ariaLabel: "Loading button",
36+
size: "md",
37+
icon: FlashlightIcon,
38+
isLoading: true,
39+
},
40+
}),
4141
};
4242

4343
export const Active = {
44-
render: () => ({
45-
Component: ButtonIcon,
46-
props: {
47-
variant: "white",
48-
ariaLabel: "Active button",
49-
size: "md",
50-
icon: FlashlightIcon,
51-
isActive: true,
52-
},
53-
}),
44+
render: () => ({
45+
Component: ButtonIcon,
46+
props: {
47+
variant: "white",
48+
ariaLabel: "Active button",
49+
size: "md",
50+
icon: FlashlightIcon,
51+
isActive: true,
52+
},
53+
}),
5454
};

0 commit comments

Comments
 (0)