Skip to content

Commit 38ea828

Browse files
ductinhkx97rluders
authored andcommitted
fix(button.tsx): fix: make prop theme work
1 parent e3e2112 commit 38ea828

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/components/Button/Button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ const ButtonComponent = forwardRef<HTMLButtonElement | HTMLAnchorElement, Button
104104
},
105105
ref,
106106
) => {
107-
const { buttonGroup: groupTheme, button: theme } = mergeDeep(useTheme().theme, customTheme);
107+
const { buttonGroup: groupTheme, button: buttonTheme } = useTheme().theme;
108+
const theme = mergeDeep(buttonTheme, customTheme);
108109

109110
const isLink = typeof href !== 'undefined';
110111
const Component = isLink ? 'a' : 'button';

0 commit comments

Comments
 (0)