Skip to content

Commit

Permalink
Remove explicit React.FC type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Apr 26, 2024
1 parent 19487ca commit 29db31c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-date-picker/src/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export type DatePickerProps = {
} & CalendarProps &
Omit<EventProps, 'onChange' | 'onFocus'>;

const DatePicker: React.FC<DatePickerProps> = function DatePicker(props) {
export default function DatePicker(props: DatePickerProps) {
const {
autoFocus,
calendarAriaLabel,
Expand Down Expand Up @@ -648,6 +648,4 @@ const DatePicker: React.FC<DatePickerProps> = function DatePicker(props) {
{renderCalendar()}
</div>
);
};

export default DatePicker;
}

0 comments on commit 29db31c

Please sign in to comment.