Skip to content

Commit fccf195

Browse files
committed
Remove explicit React.FC type declaration
1 parent 383d3e6 commit fccf195

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-date-picker/src/DatePicker.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export type DatePickerProps = {
331331
} & CalendarProps &
332332
Omit<EventProps, 'onChange' | 'onFocus'>;
333333

334-
const DatePicker: React.FC<DatePickerProps> = function DatePicker(props) {
334+
export default function DatePicker(props: DatePickerProps) {
335335
const {
336336
autoFocus,
337337
calendarAriaLabel,
@@ -651,6 +651,4 @@ const DatePicker: React.FC<DatePickerProps> = function DatePicker(props) {
651651
{renderCalendar()}
652652
</div>
653653
);
654-
};
655-
656-
export default DatePicker;
654+
}

0 commit comments

Comments
 (0)