Skip to content

Commit

Permalink
type(Github): fix swatch type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 19, 2023
1 parent 6471070 commit 63a009e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/color-github/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ const Github = React.forwardRef<HTMLDivElement, GithubProps>((props, ref) => {
arrStyl.marginTop = -20;
}
}
const render = ({ key, ...props }: SwatchRectRenderProps) => {
const handle = rectRender && rectRender({ key, ...props });
const render = ({ ...props }: SwatchRectRenderProps) => {
const handle = rectRender && rectRender({ ...props });
if (handle) return handle;
return <Point key={key} {...props} rectProps={rectProps} />;
return <Point {...props} rectProps={rectProps} />;
};
return (
<Swatch
Expand Down

0 comments on commit 63a009e

Please sign in to comment.