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 c4f87ed commit 1926404
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 @@ -332,7 +332,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 @@ -664,6 +664,4 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
{renderClock()}
</div>
);
};

export default TimeRangePicker;
}

0 comments on commit 1926404

Please sign in to comment.