Skip to content

Commit

Permalink
fix type issue by casting unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed May 16, 2021
1 parent cd370c6 commit 113ea0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ interface BaseDateRangePickerProps<TDate>
value: RangeInput<TDate>;
}

const KeyboardDateInputComponent = DateRangePickerInput as React.FC<DateInputPropsLike>;
const PureDateInputComponent = DateRangePickerInput as React.FC<DateInputPropsLike>;
const KeyboardDateInputComponent = (DateRangePickerInput as unknown) as React.FC<DateInputPropsLike>;
const PureDateInputComponent = (DateRangePickerInput as unknown) as React.FC<DateInputPropsLike>;

const rangePickerValueManager: PickerStateValueManager<any, any> = {
emptyValue: [null, null],
Expand Down

0 comments on commit 113ea0f

Please sign in to comment.