Skip to content

Commit 5b60394

Browse files
committed
fix: Check Lint / lint
1 parent e73b731 commit 5b60394

File tree

3 files changed

+68
-60
lines changed

3 files changed

+68
-60
lines changed
Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
import Header from "./Header.svelte";
1+
import Header from './Header.svelte'
22

33
export default {
4-
title: "Fragments/Header",
5-
component: Header,
6-
tags: ["autodocs"],
7-
render: (args: any) => ({
8-
Component: Header,
9-
props: args,
10-
}),
11-
};
4+
title: 'Fragments/Header',
5+
component: Header,
6+
tags: ['autodocs'],
7+
render: (args: {
8+
title: string
9+
isBackRequired: boolean
10+
isUserLoggedIn: boolean
11+
}) => ({
12+
Component: Header,
13+
props: args,
14+
}),
15+
}
1216

1317
export const Primary = {
14-
args: {
15-
title: "Create PIN",
16-
isBackRequired: false,
17-
isUserLoggedIn: false,
18-
},
19-
};
18+
args: {
19+
title: 'Create PIN',
20+
isBackRequired: false,
21+
isUserLoggedIn: false,
22+
},
23+
}
2024

2125
export const Secondary = {
22-
args: {
23-
title: "Create PIN",
24-
isBackRequired: true,
25-
isUserLoggedIn: false,
26-
},
27-
};
26+
args: {
27+
title: 'Create PIN',
28+
isBackRequired: true,
29+
isUserLoggedIn: false,
30+
},
31+
}
2832

2933
export const Tertiary = {
30-
args: {
31-
title: "Create PIN",
32-
isBackRequired: true,
33-
isUserLoggedIn: true,
34-
},
35-
};
34+
args: {
35+
title: 'Create PIN',
36+
isBackRequired: true,
37+
isUserLoggedIn: true,
38+
},
39+
}
Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
import Connection from "./Connection.svelte";
1+
import Connection from './Connection.svelte'
22

33
export default {
4-
title: "UI/Connection",
5-
component: Connection,
6-
tags: ["autodocs"],
7-
render: (args: any) => ({
8-
Component: Connection,
9-
props: args,
10-
}),
11-
};
4+
title: 'UI/Connection',
5+
component: Connection,
6+
tags: ['autodocs'],
7+
render: (args: {
8+
imgSrc: string
9+
connectionName: string
10+
lastConnected: string
11+
onClick: () => void
12+
}) => ({
13+
Component: Connection,
14+
props: args,
15+
}),
16+
}
1217

1318
export const Primary = {
14-
args: {
15-
imgSrc:
16-
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRGPvo_J4nWlDM0kxFW0rsfR5UeOOC6uMvpfQ&s",
17-
connectionName: "Facebook.com",
18-
lastConnected:
19-
new Date().toDateString() + ", " + new Date().toLocaleTimeString(),
20-
onClick: () => alert("Disconnected!"),
21-
},
22-
};
19+
args: {
20+
imgSrc:
21+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRGPvo_J4nWlDM0kxFW0rsfR5UeOOC6uMvpfQ&s',
22+
connectionName: 'Facebook.com',
23+
lastConnected: `${new Date().toDateString()}, ${new Date().toLocaleTimeString()}`,
24+
onClick: () => alert('Disconnected!'),
25+
},
26+
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import Drawer from "./Drawer.svelte";
2-
import { InnerContent } from "./Drawer.stories.snippet.svelte";
1+
import Drawer from './Drawer.svelte'
2+
import { InnerContent } from './Drawer.stories.snippet.svelte'
33

44
export default {
5-
title: "UI/Drawer",
6-
component: Drawer,
7-
tags: ["autodocs"],
8-
render: (args: any) => ({
9-
Component: Drawer,
10-
props: args,
11-
}),
12-
};
5+
title: 'UI/Drawer',
6+
component: Drawer,
7+
tags: ['autodocs'],
8+
render: (args: { isPaneOpen: boolean; children: any }) => ({
9+
Component: Drawer,
10+
props: args,
11+
}),
12+
}
1313

1414
export const Default = {
15-
args: {
16-
isPaneOpen: true,
17-
children: InnerContent,
18-
},
19-
};
15+
args: {
16+
isPaneOpen: true,
17+
children: InnerContent,
18+
},
19+
}

0 commit comments

Comments
 (0)