Skip to content

Commit 2602f43

Browse files
committed
Remove explicit React.FC type declaration
1 parent 5ed4f9d commit 2602f43

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
@@ -413,9 +413,7 @@ export type DateTimeRangePickerProps = {
413413
ClockProps &
414414
Omit<EventProps, 'onChange' | 'onFocus'>;
415415

416-
const DateTimeRangePicker: React.FC<DateTimeRangePickerProps> = function DateTimeRangePicker(
417-
props,
418-
) {
416+
export default function DateTimeRangePicker(props: DateTimeRangePickerProps) {
419417
const {
420418
amPmAriaLabel,
421419
autoFocus,
@@ -950,6 +948,4 @@ const DateTimeRangePicker: React.FC<DateTimeRangePickerProps> = function DateTim
950948
{renderClock()}
951949
</div>
952950
);
953-
};
954-
955-
export default DateTimeRangePicker;
951+
}

0 commit comments

Comments
 (0)