Skip to content

Commit 0ba15f0

Browse files
committed
Remove explicit React.FC type declaration
1 parent 64fe739 commit 0ba15f0

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
@@ -329,7 +329,7 @@ export type TimeRangePickerProps = {
329329
} & ClockProps &
330330
Omit<EventProps, 'onChange' | 'onFocus'>;
331331

332-
const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker(props) {
332+
export default function TimeRangePicker(props: TimeRangePickerProps) {
333333
const {
334334
amPmAriaLabel,
335335
autoFocus,
@@ -661,6 +661,4 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
661661
{renderClock()}
662662
</div>
663663
);
664-
};
665-
666-
export default TimeRangePicker;
664+
}

0 commit comments

Comments
 (0)