Skip to content

Commit

Permalink
not allow className
Browse files Browse the repository at this point in the history
  • Loading branch information
8845musign committed Aug 8, 2024
1 parent e6ad183 commit d4f99dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HelperMessage/HelperMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styles from './HelperMessage.module.css';

type Props = {
children: ReactNode;
} & ComponentPropsWithRef<'p'>;
} & Omit<ComponentPropsWithRef<'p'>, 'children' | 'className'>;

export const HelperMessage = forwardRef<HTMLParagraphElement, Props>(({ children, ...rest }, ref) => {
return (
Expand Down

0 comments on commit d4f99dd

Please sign in to comment.