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 aeb397d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ interface BaseDateRangePickerProps<TDate>
value: RangeInput<TDate>;
}

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

const rangePickerValueManager: PickerStateValueManager<any, any> = {
emptyValue: [null, null],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ interface BaseDateRangePickerProps<TDate>
value: RangeInput<TDate>;
}

const PureDateInputComponent = DateRangePickerInput 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 aeb397d

Please sign in to comment.