Skip to content

Commit a6d22f8

Browse files
committed
Remove explicit React.FC type declaration
1 parent 0c96e07 commit a6d22f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/react-datetimerange-picker/src/DateTimeRangePicker.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,7 @@ export type DateTimeRangePickerProps = {
415415
ClockProps &
416416
Omit<EventProps, 'onChange' | 'onFocus'>;
417417

418-
const DateTimeRangePicker: React.FC<DateTimeRangePickerProps> = function DateTimeRangePicker(
419-
props,
420-
) {
418+
export default function DateTimeRangePicker(props: DateTimeRangePickerProps) {
421419
const {
422420
amPmAriaLabel,
423421
autoFocus,
@@ -952,6 +950,4 @@ const DateTimeRangePicker: React.FC<DateTimeRangePickerProps> = function DateTim
952950
{renderClock()}
953951
</div>
954952
);
955-
};
956-
957-
export default DateTimeRangePicker;
953+
}

0 commit comments

Comments
 (0)