From 0ba15f0481f153ffc615b439ef9f9defed4acd59 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 71b0705..b57c9d2 100644 --- a/packages/react-timerange-picker/src/TimeRangePicker.tsx +++ b/packages/react-timerange-picker/src/TimeRangePicker.tsx @@ -329,7 +329,7 @@ export type TimeRangePickerProps = { } & ClockProps & Omit; -const TimeRangePicker: React.FC = function TimeRangePicker(props) { +export default function TimeRangePicker(props: TimeRangePickerProps) { const { amPmAriaLabel, autoFocus, @@ -661,6 +661,4 @@ const TimeRangePicker: React.FC = function TimeRangePicker {renderClock()} ); -}; - -export default TimeRangePicker; +}