From 19264043a34cfc5965b32490d91241d14a570580 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 26 Apr 2024 14:32:18 +0200 Subject: [PATCH] Remove explicit React.FC type declaration --- packages/react-timerange-picker/src/TimeRangePicker.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-timerange-picker/src/TimeRangePicker.tsx b/packages/react-timerange-picker/src/TimeRangePicker.tsx index 23d3d7a..1201eb2 100644 --- a/packages/react-timerange-picker/src/TimeRangePicker.tsx +++ b/packages/react-timerange-picker/src/TimeRangePicker.tsx @@ -332,7 +332,7 @@ export type TimeRangePickerProps = { } & ClockProps & Omit; -const TimeRangePicker: React.FC = function TimeRangePicker(props) { +export default function TimeRangePicker(props: TimeRangePickerProps) { const { amPmAriaLabel, autoFocus, @@ -664,6 +664,4 @@ const TimeRangePicker: React.FC = function TimeRangePicker {renderClock()} ); -}; - -export default TimeRangePicker; +}