1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

added request code dialog

This commit is contained in:
Fedor Katurov 2019-11-25 16:08:22 +07:00
parent c0c832d158
commit 6dcb21e9e4
18 changed files with 292 additions and 88 deletions

View file

@ -9,6 +9,7 @@ type IButtonProps = DetailedHTMLProps<
HTMLButtonElement
> & {
size?: 'mini' | 'normal' | 'big' | 'giant' | 'micro' | 'small';
color?: 'primary' | 'secondary' | 'outline' | 'link';
iconLeft?: IIcon;
iconRight?: IIcon;
seamless?: boolean;
@ -25,6 +26,7 @@ type IButtonProps = DetailedHTMLProps<
const Button: FC<IButtonProps> = memo(
({
className = '',
color = 'primary',
size = 'normal',
iconLeft,
iconRight,
@ -44,7 +46,7 @@ const Button: FC<IButtonProps> = memo(
createElement(
seamless || non_submitting ? 'div' : 'button',
{
className: classnames(styles.button, className, styles[size], {
className: classnames(styles.button, className, styles[size], styles[color], {
red,
grey,
seamless,