mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
replaced div with button
This commit is contained in:
parent
44bbc4cd4c
commit
40af254e5c
3 changed files with 19 additions and 16 deletions
|
@ -28,6 +28,7 @@ type IButtonProps = DetailedHTMLProps<
|
|||
stretchy?: boolean;
|
||||
iconOnly?: boolean;
|
||||
label?: string;
|
||||
round?: boolean;
|
||||
};
|
||||
|
||||
const Button: FC<IButtonProps> = memo(
|
||||
|
@ -48,6 +49,7 @@ const Button: FC<IButtonProps> = memo(
|
|||
iconOnly,
|
||||
label,
|
||||
ref,
|
||||
round,
|
||||
...props
|
||||
}) => {
|
||||
const tooltip = useRef<HTMLSpanElement | null>(null);
|
||||
|
@ -75,6 +77,7 @@ const Button: FC<IButtonProps> = memo(
|
|||
icon: ((iconLeft || iconRight) && !title && !children) || iconOnly,
|
||||
has_icon_left: !!iconLeft,
|
||||
has_icon_right: !!iconRight,
|
||||
round,
|
||||
}),
|
||||
...props,
|
||||
},
|
||||
|
|
|
@ -202,14 +202,17 @@
|
|||
.normal {
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.big {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.giant {
|
||||
height: 50px;
|
||||
padding: 0 15px;
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue