2023-03-23 19:43:12 +00:00
|
|
|
import { action } from "@storybook/addon-actions"
|
|
|
|
import { Story } from "@storybook/react"
|
2023-03-29 19:10:04 +00:00
|
|
|
import { MockTemplate } from "testHelpers/entities"
|
2023-03-23 19:43:12 +00:00
|
|
|
import {
|
|
|
|
TemplateSchedulePageView,
|
|
|
|
TemplateSchedulePageViewProps,
|
|
|
|
} from "./TemplateSchedulePageView"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: "pages/TemplateSchedulePageView",
|
|
|
|
component: TemplateSchedulePageView,
|
|
|
|
args: {
|
2023-04-12 17:47:48 +00:00
|
|
|
allowAdvancedScheduling: true,
|
2023-05-05 15:19:26 +00:00
|
|
|
allowWorkspaceActions: true,
|
2023-03-29 19:10:04 +00:00
|
|
|
template: MockTemplate,
|
2023-03-23 19:43:12 +00:00
|
|
|
onSubmit: action("onSubmit"),
|
|
|
|
onCancel: action("cancel"),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
const Template: Story<TemplateSchedulePageViewProps> = (args) => (
|
|
|
|
<TemplateSchedulePageView {...args} />
|
|
|
|
)
|
|
|
|
|
|
|
|
export const Example = Template.bind({})
|
|
|
|
Example.args = {}
|
|
|
|
|
|
|
|
export const CantSetMaxTTL = Template.bind({})
|
|
|
|
CantSetMaxTTL.args = {
|
2023-04-12 17:47:48 +00:00
|
|
|
allowAdvancedScheduling: false,
|
2023-03-23 19:43:12 +00:00
|
|
|
}
|