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 db56b34 commit e34b61c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-daterange-picker/src/DateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export type DateRangePickerProps = {
} & CalendarProps &
Omit<EventProps, 'onChange' | 'onFocus'>;

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

export default DateRangePicker;
}

0 comments on commit e34b61c

Please sign in to comment.