fix: restyle login page

This commit is contained in:
Dominik 2025-05-06 14:01:54 +02:00
parent cda7900fde
commit 14839c0c01
9 changed files with 48 additions and 41 deletions

View file

@ -8,22 +8,17 @@ export default function Button({
children,
mode = 'primary',
icon,
width,
}: {
type?: 'button' | 'submit' | 'reset';
children?: React.ReactNode;
mode?: 'primary' | 'warning' | 'success' | 'danger';
icon?: IconProp;
width?: number;
}) {
if (!icon) {
return (
<button
className={style.button + ' ' + style['style_' + mode]}
type={type}
style={{
width: width ? `${width}px` : '100%',
}}
>
<span>{children}</span>
</button>
@ -35,9 +30,6 @@ export default function Button({
style.button + ' ' + style['style_' + mode] + ' ' + style['icon']
}
type={type}
style={{
width: width ? `${width}px` : '100%',
}}
>
<FontAwesomeIcon icon={icon} height={25} />
<span>{children}</span>