From 4468e51a4fb1bfee6cd3f26df6a674ec1af578d5 Mon Sep 17 00:00:00 2001 From: jpveooys <66470099+jpveooys@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:38:01 +0000 Subject: [PATCH] feat(DatePickerE): Add additional stories --- .../components/DatePickerE/DatePickerE.stories.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/react-component-library/src/components/DatePickerE/DatePickerE.stories.tsx b/packages/react-component-library/src/components/DatePickerE/DatePickerE.stories.tsx index 1f5ac613af..e962da3faa 100644 --- a/packages/react-component-library/src/components/DatePickerE/DatePickerE.stories.tsx +++ b/packages/react-component-library/src/components/DatePickerE/DatePickerE.stories.tsx @@ -31,6 +31,12 @@ const Template: Story = (args) => export const Default = Template.bind({}) +export const WithExistingValue = Template.bind({}) +WithExistingValue.storyName = 'With existing value' +WithExistingValue.args = { + startDate: parseISO('2021-12-15'), +} + export const CustomFormat = Template.bind({}) CustomFormat.storyName = 'Custom format' CustomFormat.args = { @@ -74,6 +80,14 @@ Range.args = { isRange: true, } +export const RangeWithExistingValue = Template.bind({}) +RangeWithExistingValue.storyName = 'Range, with existing value' +RangeWithExistingValue.args = { + isRange: true, + startDate: parseISO('2021-12-05'), + endDate: parseISO('2021-12-15'), +} + export const WithFormik: Story = (props) => { interface Data { startDate: Date