0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(console): icon button classname (#408)

This commit is contained in:
Wang Sijie 2022-03-18 08:45:47 +08:00 committed by GitHub
parent 8dd05f776f
commit a3ba8a8065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,9 @@ export type Props = Omit<HTMLProps<HTMLButtonElement>, 'size' | 'type'> & {
size?: 'small' | 'medium' | 'large';
};
const IconButton = ({ size = 'medium', children, ...rest }: Props) => {
const IconButton = ({ size = 'medium', children, className, ...rest }: Props) => {
return (
<button type="button" className={classNames(styles.button, styles[size])} {...rest}>
<button type="button" className={classNames(styles.button, styles[size], className)} {...rest}>
{children}
</button>
);