Skip to content

Commit 0d7312b

Browse files
tyxlaMamaduka
andauthored
DateTime: Add default date/time to stories (#67678)
Co-authored-by: tyxla <[email protected]> Co-authored-by: Mamaduka <[email protected]>
1 parent a0c4c61 commit 0d7312b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

‎packages/components/src/date-time/stories/date-time.story.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ const Template: StoryFn< typeof DateTimePicker > = ( {
5151
};
5252

5353
export const Default: StoryFn< typeof DateTimePicker > = Template.bind( {} );
54+
Default.args = {
55+
currentDate: new Date(),
56+
};
5457

5558
export const WithEvents: StoryFn< typeof DateTimePicker > = Template.bind( {} );
5659
WithEvents.args = {

‎packages/components/src/date-time/stories/date.story.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ const Template: StoryFn< typeof DatePicker > = ( {
5151
};
5252

5353
export const Default: StoryFn< typeof DatePicker > = Template.bind( {} );
54+
Default.args = {
55+
currentDate: new Date(),
56+
};
5457

5558
export const WithEvents: StoryFn< typeof DatePicker > = Template.bind( {} );
5659
WithEvents.args = {

‎packages/components/src/date-time/stories/time.story.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ const Template: StoryFn< typeof TimePicker > = ( {
5252
};
5353

5454
export const Default: StoryFn< typeof TimePicker > = Template.bind( {} );
55+
Default.args = {
56+
currentTime: new Date(),
57+
};
5558

5659
const TimeInputTemplate: StoryFn< typeof TimePicker.TimeInput > = ( args ) => {
5760
return <TimePicker.TimeInput { ...args } />;

0 commit comments

Comments
 (0)