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 0c96e07 commit a6d22f8
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,7 @@ export type DateTimeRangePickerProps = {
ClockProps &
Omit<EventProps, 'onChange' | 'onFocus'>;

const DateTimeRangePicker: React.FC<DateTimeRangePickerProps> = function DateTimeRangePicker(
props,
) {
export default function DateTimeRangePicker(props: DateTimeRangePickerProps) {
const {
amPmAriaLabel,
autoFocus,
Expand Down Expand Up @@ -952,6 +950,4 @@ const DateTimeRangePicker: React.FC<DateTimeRangePickerProps> = function DateTim
{renderClock()}
</div>
);
};

export default DateTimeRangePicker;
}

0 comments on commit a6d22f8

Please sign in to comment.