Skip to content

Commit

Permalink
Remove type ComponentPropsWithoutRef
Browse files Browse the repository at this point in the history
  • Loading branch information
nighto committed Dec 6, 2024
1 parent 6ddde14 commit b7c83d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/forms/controls/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react';
import ReactDatePicker from 'react-datepicker';

import { classNames as cx, type ComponentPropsWithoutRef, type ClassNameArgument } from '../../../../util/componentUtil.ts';
import { classNames as cx, type ClassNameArgument } from '../../../../util/componentUtil.ts';

import 'react-datepicker/dist/react-datepicker.css';
import cl from './DatePicker.module.scss';
Expand Down
5 changes: 0 additions & 5 deletions src/util/componentUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ export type ComponentProps<T extends React.ElementType> =
Omit<React.ComponentPropsWithRef<T>, 'className'> & {
className?: undefined | ClassNameArgument,
};

export type ComponentPropsWithoutRef<T extends React.ElementType> =
Omit<React.ComponentPropsWithoutRef<T>, 'className'> & {
className?: undefined | ClassNameArgument,
};

0 comments on commit b7c83d6

Please sign in to comment.