Skip to content

refactor: Improve the load state for the list pages #1428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add loading states on storybook
  • Loading branch information
BrunoQuaresma committed May 13, 2022
commit 8524f1f4404731a43d225fd064d2c10ec7a21163
6 changes: 6 additions & 0 deletions site/src/components/TemplatesTable/TemplatesTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ Empty.args = {
templates: [],
organizations: [],
}

export const Loading = Template.bind({})
Loading.args = {
templates: undefined,
organizations: [],
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ Empty.args = {
console.info("Create workspace")
},
}

export const Loading = Template.bind({})
Loading.args = {
templateInfo: MockTemplate,
workspaces: undefined,
onCreateWorkspace: () => {
console.info("Create workspace")
},
}