feat: group gain + scale logo
This commit is contained in:
@ -70,22 +70,22 @@ export default function Button({
|
||||
}, [fontSize, children, W]);
|
||||
|
||||
const button = (
|
||||
<button
|
||||
type={type}
|
||||
className={`btn btn-${variant} ${className}`}
|
||||
onClick={onClick}
|
||||
disabled={disabled}
|
||||
style={{
|
||||
width: scale ? '100%' : W,
|
||||
height: scale ? '100%' : H,
|
||||
fontSize: `${computedFontSize}px`,
|
||||
...style,
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
<button
|
||||
type={type}
|
||||
className={`btn btn-${variant} ${className}`}
|
||||
onClick={onClick}
|
||||
disabled={disabled}
|
||||
style={{
|
||||
width: scale ? '100%' : W,
|
||||
height: scale ? '100%' : H,
|
||||
fontSize: `${computedFontSize}px`,
|
||||
...style,
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
|
||||
if (!scale) return button;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user