Skip to content

Commit

Permalink
fix datepicker story onChange signature
Browse files Browse the repository at this point in the history
  • Loading branch information
nighto committed Dec 6, 2024
1 parent 6c1ea5a commit 1f22ccb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ export const DatePickerStory: Story = {
<div style={{height: '500px'}}>
<DatePicker
{...args}
// TODO: why this error? selected is defined as Date | null on
// node_modules/react-datepicker/dist/index.d.ts, line 67
selected={startDate}
onChange={(date: Date) => setStartDate(date)}
onChange={(date: Date | null) => setStartDate(date)}
/>
</div>
);
Expand Down

0 comments on commit 1f22ccb

Please sign in to comment.