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 9cb532a commit d65bbe8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-time-picker/src/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export type TimePickerProps = {
} & ClockProps &
Omit<EventProps, 'onChange' | 'onFocus'>;

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

export default TimePicker;
}

0 comments on commit d65bbe8

Please sign in to comment.