Consistent story data

This commit is contained in:
Gert Hengeveld 2021-11-24 21:48:12 +01:00
parent a061bcf758
commit 0803e96073
2 changed files with 44 additions and 10 deletions

View File

@ -60,6 +60,14 @@ export const Paused: Story = {
args: { args: {
isPlaying: true, isPlaying: true,
interactions: [getCall(CallStates.WAITING)], interactions: [getCall(CallStates.WAITING)],
controlStates: {
debugger: true,
start: false,
back: false,
goto: true,
next: true,
end: true,
},
}, },
}; };

View File

@ -18,8 +18,8 @@ export default {
start: true, start: true,
back: true, back: true,
goto: true, goto: true,
next: true, next: false,
end: true, end: false,
}, },
storyFileName: 'Subnav.stories.tsx', storyFileName: 'Subnav.stories.tsx',
hasNext: true, hasNext: true,
@ -45,18 +45,44 @@ export const Runs = {
}, },
}; };
export const AtTheBeginning = { export const AtStart = {
name: 'at the beginning',
args: { args: {
status: CallStates.DONE, status: CallStates.WAITING,
hasPrevious: false, controlStates: {
debugger: true,
start: false,
back: false,
goto: true,
next: true,
end: true,
},
}, },
}; };
export const AtTheEnd = { export const Midway = {
name: 'at the end',
args: { args: {
status: CallStates.DONE, status: CallStates.WAITING,
hasNext: false, controlStates: {
debugger: true,
start: true,
back: true,
goto: true,
next: true,
end: true,
},
},
};
export const Locked = {
args: {
status: CallStates.ACTIVE,
controlStates: {
debugger: true,
start: false,
back: false,
goto: false,
next: false,
end: false,
},
}, },
}; };