Skip to content

Commit

Permalink
type(Swatch): fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 3, 2023
1 parent 7770948 commit 8b2f458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/color-swatch/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Swatch = React.forwardRef<HTMLDivElement, SwatchProps>((props, ref) => {
}
const child =
rectProps.children && React.isValidElement(rectProps.children)
? React.cloneElement(rectProps.children, {
? React.cloneElement<any>(rectProps.children, {
color: background,
checked,
})
Expand Down

0 comments on commit 8b2f458

Please sign in to comment.