Skip to content

Commit

Permalink
fix: character type (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Nov 17, 2020
1 parent b0c9565 commit 649d3df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface RateProps {
onChange?: (value: number) => void;
onHoverChange?: (value: number) => void;
className?: string;
character?: (props: StarProps) => React.ReactNode | React.ReactNode;
character?: React.ReactNode;
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;
tabIndex?: number;
onFocus?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/Star.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface StarProps {
e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>,
index: number,
) => void;
character?: (props: StarProps) => React.ReactNode | React.ReactNode;
character?: React.ReactNode;
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;
focused?: boolean;
count?: number;
Expand Down

0 comments on commit 649d3df

Please sign in to comment.