Skip to content

Commit 8524f1f

Browse files
committed
Add loading states on storybook
1 parent b3bdc36 commit 8524f1f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

site/src/components/TemplatesTable/TemplatesTable.stories.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ Empty.args = {
2121
templates: [],
2222
organizations: [],
2323
}
24+
25+
export const Loading = Template.bind({})
26+
Loading.args = {
27+
templates: undefined,
28+
organizations: [],
29+
}

site/src/components/WorkspacesTable/WorkspacesTable.stories.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ Empty.args = {
2727
console.info("Create workspace")
2828
},
2929
}
30+
31+
export const Loading = Template.bind({})
32+
Loading.args = {
33+
templateInfo: MockTemplate,
34+
workspaces: undefined,
35+
onCreateWorkspace: () => {
36+
console.info("Create workspace")
37+
},
38+
}

0 commit comments

Comments
 (0)