Skip to content

Commit 1926404

Browse files
committed
Remove explicit React.FC type declaration
1 parent c4f87ed commit 1926404

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-timerange-picker/src/TimeRangePicker.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export type TimeRangePickerProps = {
332332
} & ClockProps &
333333
Omit<EventProps, 'onChange' | 'onFocus'>;
334334

335-
const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker(props) {
335+
export default function TimeRangePicker(props: TimeRangePickerProps) {
336336
const {
337337
amPmAriaLabel,
338338
autoFocus,
@@ -664,6 +664,4 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
664664
{renderClock()}
665665
</div>
666666
);
667-
};
668-
669-
export default TimeRangePicker;
667+
}

0 commit comments

Comments
 (0)