Skip to content

Commit

Permalink
fix(design): TS type error for ButtonToken
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Sep 12, 2023
1 parent ef05f41 commit 09595b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/design/src/button/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const genButtonStyle: GenerateStyle<ButtonToken> = (token: ButtonToken) =

export default (prefixCls: string) => {
const useStyle = genComponentStyleHook('Button', token => {
return [genButtonStyle(token)];
return [genButtonStyle(token as ButtonToken)];
});
return useStyle(prefixCls);
};

0 comments on commit 09595b1

Please sign in to comment.