Skip to content

Commit 7bad032

Browse files
committed
fix to replace moment.js in stories
1 parent 236eb44 commit 7bad032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stories/Datepicker.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ComponentProps, useCallback } from 'react';
2-
import moment from 'moment';
2+
import dayjs from 'dayjs';
33
import { Datepicker, Button } from '../src/scripts';
44
import { ComponentMeta, ComponentStoryObj } from '@storybook/react';
55
import { containerDecorator } from './util';
@@ -11,7 +11,7 @@ const TodayButtonExtensionRenderer = (props: {
1111
onSelect?: (date: string) => void;
1212
}) => {
1313
const { onSelect } = props;
14-
const today = moment().format('YYYY-MM-DD');
14+
const today = dayjs().format('YYYY-MM-DD');
1515
const onSelectToday = useCallback(() => {
1616
onSelect?.(today);
1717
}, [onSelect, today]);

0 commit comments

Comments
 (0)