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 64fe739 commit 0ba15f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-timerange-picker/src/TimeRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export type TimeRangePickerProps = {
} & ClockProps &
Omit<EventProps, 'onChange' | 'onFocus'>;

const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker(props) {
export default function TimeRangePicker(props: TimeRangePickerProps) {
const {
amPmAriaLabel,
autoFocus,
Expand Down Expand Up @@ -661,6 +661,4 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
{renderClock()}
</div>
);
};

export default TimeRangePicker;
}

0 comments on commit 0ba15f0

Please sign in to comment.