Skip to content

Commit 2bd5396

Browse files
committed
Remove explicit React.FC type declaration
1 parent d90f8c0 commit 2bd5396

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-time-picker/src/TimePicker.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export type TimePickerProps = {
325325
} & ClockProps &
326326
Omit<EventProps, 'onChange' | 'onFocus'>;
327327

328-
const TimePicker: React.FC<TimePickerProps> = function TimePicker(props) {
328+
export default function TimePicker(props: TimePickerProps) {
329329
const {
330330
amPmAriaLabel,
331331
autoFocus,
@@ -638,6 +638,4 @@ const TimePicker: React.FC<TimePickerProps> = function TimePicker(props) {
638638
{renderClock()}
639639
</div>
640640
);
641-
};
642-
643-
export default TimePicker;
641+
}

0 commit comments

Comments
 (0)