File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
site/src/pages/WorkspacesPage Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { ComponentMeta , Story } from "@storybook/react"
2
- import { ProvisionerJobStatus , Workspace } from "../../api/typesGenerated"
2
+ import { ProvisionerJobStatus , Workspace , WorkspaceTransition } from "../../api/typesGenerated"
3
3
import { MockWorkspace } from "../../testHelpers/entities"
4
4
import { WorkspacesPageView , WorkspacesPageViewProps } from "./WorkspacesPageView"
5
5
@@ -10,7 +10,10 @@ export default {
10
10
11
11
const Template : Story < WorkspacesPageViewProps > = ( args ) => < WorkspacesPageView { ...args } />
12
12
13
- const createWorkspaceWithStatus = ( status : ProvisionerJobStatus , transition = "start" ) : Workspace => {
13
+ const createWorkspaceWithStatus = (
14
+ status : ProvisionerJobStatus ,
15
+ transition : WorkspaceTransition = "start" ,
16
+ ) : Workspace => {
14
17
return {
15
18
...MockWorkspace ,
16
19
latest_build : {
@@ -46,4 +49,6 @@ AllStates.args = {
46
49
}
47
50
48
51
export const Empty = Template . bind ( { } )
49
- Empty . args = { }
52
+ Empty . args = {
53
+ workspaces : [ ] ,
54
+ }
You can’t perform that action at this time.
0 commit comments