Skip to content

Commit

Permalink
[createSkinComponent]: fixed ref prop typing, temporary define it as …
Browse files Browse the repository at this point in the history
…'any'.
  • Loading branch information
AlekseyManetov committed Dec 7, 2023
1 parent 2f15a37 commit d5265ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uui-core/src/helpers/createSkinComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function createSkinComponent<SourceProps, SkinProps = {}>(
Component: React.ComponentType<SourceProps>,
getProps?: (props: Readonly<SkinProps>) => Partial<SkinProps>,
getCx?: (props: Readonly<SkinProps>) => CX,
) : (props: SkinProps & React.RefAttributes<SkinProps>) => React.ReactElement | null {
) : (props: SkinProps & React.RefAttributes<any>) => React.ReactElement | null {
if (!getProps && !getCx) {
return Component as any;
}
Expand Down

0 comments on commit d5265ae

Please sign in to comment.