Skip to content

Commit 114f65a

Browse files
committed
Fix workspace page view stories
1 parent 5300bf8 commit 114f65a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

site/src/pages/WorkspacesPage/WorkspacesPageView.stories.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ComponentMeta, Story } from "@storybook/react"
2-
import { ProvisionerJobStatus, Workspace } from "../../api/typesGenerated"
2+
import { ProvisionerJobStatus, Workspace, WorkspaceTransition } from "../../api/typesGenerated"
33
import { MockWorkspace } from "../../testHelpers/entities"
44
import { WorkspacesPageView, WorkspacesPageViewProps } from "./WorkspacesPageView"
55

@@ -10,7 +10,10 @@ export default {
1010

1111
const Template: Story<WorkspacesPageViewProps> = (args) => <WorkspacesPageView {...args} />
1212

13-
const createWorkspaceWithStatus = (status: ProvisionerJobStatus, transition = "start"): Workspace => {
13+
const createWorkspaceWithStatus = (
14+
status: ProvisionerJobStatus,
15+
transition: WorkspaceTransition = "start",
16+
): Workspace => {
1417
return {
1518
...MockWorkspace,
1619
latest_build: {
@@ -46,4 +49,6 @@ AllStates.args = {
4649
}
4750

4851
export const Empty = Template.bind({})
49-
Empty.args = {}
52+
Empty.args = {
53+
workspaces: [],
54+
}

0 commit comments

Comments
 (0)