Skip to content

Commit 493494b

Browse files
author
Ilza Medeiros
committed
fix(@clayui/@date-picker): LPD-51204 Update year on stories
1 parent b85097c commit 493494b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/clay-date-picker/stories/DatePicker.stories.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const Default = () => (
4646
<ClayDatePickerWithState
4747
placeholder="YYYY-MM-DD"
4848
years={{
49-
end: 2024,
50-
start: 1997,
49+
end: new Date().getFullYear(),
50+
start: 1998,
5151
}}
5252
/>
5353
);
@@ -57,8 +57,8 @@ export const Disabled = () => (
5757
disabled
5858
placeholder="YYYY-MM-DD"
5959
years={{
60-
end: 2024,
61-
start: 1997,
60+
end: new Date().getFullYear(),
61+
start: 1998,
6262
}}
6363
/>
6464
);
@@ -70,8 +70,8 @@ export const Time = (args: any) => (
7070
timezone="GMT+01:00"
7171
use12Hours={args.use12Hours}
7272
years={{
73-
end: 2024,
74-
start: 1997,
73+
end: new Date().getFullYear(),
74+
start: 1998,
7575
}}
7676
/>
7777
);
@@ -103,8 +103,8 @@ export const Locale = () => (
103103
timezone="GMT+03:00"
104104
weekdaysShort={['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб']}
105105
years={{
106-
end: 2024,
107-
start: 1997,
106+
end: new Date().getFullYear(),
107+
start: 1998,
108108
}}
109109
/>
110110
);
@@ -127,8 +127,8 @@ export const CustomExpand = () => {
127127
placeholder="YYYY-MM-DD"
128128
value={value}
129129
years={{
130-
end: 2024,
131-
start: 1997,
130+
end: new Date().getFullYear(),
131+
start: 1998,
132132
}}
133133
/>
134134
</>
@@ -145,8 +145,8 @@ export const DateRange = () => (
145145
placeholder="YYYY/MM/DD - YYYY/MM/DD"
146146
range
147147
years={{
148-
end: 2024,
149-
start: 1997,
148+
end: new Date().getFullYear(),
149+
start: 1998,
150150
}}
151151
/>
152152
);

0 commit comments

Comments
 (0)