Skip to content

Commit 90a2c6c

Browse files
committed
Add missing stories
1 parent e70fce6 commit 90a2c6c

File tree

6 files changed

+33
-228
lines changed

6 files changed

+33
-228
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import PlayArrowRoundedIcon from "@material-ui/icons/PlayArrowRounded"
2+
import { ComponentMeta, Story } from "@storybook/react"
3+
import React from "react"
4+
import { WorkspaceActionButton, WorkspaceActionButtonProps } from "./WorkspaceActionButton"
5+
6+
export default {
7+
title: "components/WorkspaceActionButton",
8+
component: WorkspaceActionButton,
9+
} as ComponentMeta<typeof WorkspaceActionButton>
10+
11+
const Template: Story<WorkspaceActionButtonProps> = (args) => <WorkspaceActionButton {...args} />
12+
13+
export const Example = Template.bind({})
14+
Example.args = {
15+
icon: <PlayArrowRoundedIcon />,
16+
label: "Start workspace",
17+
loadingLabel: "Starting workspace",
18+
isLoading: false,
19+
}
20+
21+
export const Loading = Template.bind({})
22+
Loading.args = {
23+
icon: <PlayArrowRoundedIcon />,
24+
label: "Start workspace",
25+
loadingLabel: "Starting workspace",
26+
isLoading: true,
27+
}

site/src/components/WorkspaceBuildStats/WorkspaceBuildStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const useStyles = makeStyles((theme) => ({
9191
width: 1,
9292
height: theme.spacing(5),
9393
backgroundColor: theme.palette.divider,
94-
marginRight: theme.spacing(3),
94+
marginRight: theme.spacing(2),
9595
},
9696

9797
capitalize: {

site/src/components/WorkspaceSchedule/WorkspaceSchedule.tsx

Lines changed: 0 additions & 77 deletions
This file was deleted.

site/src/components/WorkspaceSchedule/WorkspaceSchedule.stories.tsx renamed to site/src/components/WorkspaceStats/WorkspaceStats.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { Story } from "@storybook/react"
22
import dayjs from "dayjs"
33
import React from "react"
44
import * as Mocks from "../../testHelpers/renderHelpers"
5-
import { WorkspaceSchedule, WorkspaceScheduleProps } from "./WorkspaceSchedule"
5+
import { WorkspaceStats, WorkspaceStatsProps } from "../WorkspaceStats/WorkspaceStats"
66

77
export default {
8-
title: "components/WorkspaceSchedule",
9-
component: WorkspaceSchedule,
8+
title: "components/WorkspaceStats",
9+
component: WorkspaceStats,
1010
}
1111

12-
const Template: Story<WorkspaceScheduleProps> = (args) => <WorkspaceSchedule {...args} />
12+
const Template: Story<WorkspaceStatsProps> = (args) => <WorkspaceStats {...args} />
1313

1414
export const NoTTL = Template.bind({})
1515
NoTTL.args = {

site/src/components/WorkspaceStats/WorkspaceStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const useStyles = makeStyles((theme) => ({
147147
width: 1,
148148
height: theme.spacing(5),
149149
backgroundColor: theme.palette.divider,
150-
marginRight: theme.spacing(3),
150+
marginRight: theme.spacing(2),
151151
},
152152

153153
capitalize: {

site/src/components/WorkspaceStatusBar/WorkspaceStatusBar.tsx

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)