Skip to content

Commit

Permalink
fix: added PropsWithChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
joeychrys committed Apr 11, 2022
1 parent 195b67e commit 3090117
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/rating/Rating.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { FC } from 'react';
import { FC, PropsWithChildren } from 'react';
import classNames from 'classnames';
import { RatingAdvanced } from './RatingAdvanced';
import { RatingContext, Size } from './RatingContext';
import { RatingStar } from './RatingStar';

export type RatingComponentProps = {
export type RatingComponentProps = PropsWithChildren<{
className?: string;
size?: Size;
};
}>;

const RatingComponent: FC<RatingComponentProps> = ({ children, className, size = 'sm' }) => {
return (
Expand Down

0 comments on commit 3090117

Please sign in to comment.