Create ComponentSize type and replace ButtonSize with it (#23059)

This commit is contained in:
Ivana Huckova
2020-03-25 13:10:37 +01:00
committed by GitHub
parent d6b6b0f25c
commit 65d97edb3b
12 changed files with 27 additions and 23 deletions

View File

@ -2,11 +2,12 @@ import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, useContext } from 'r
import { ThemeContext } from '../../themes';
import { getButtonStyles } from './styles';
import { ButtonContent } from './ButtonContent';
import { ButtonSize, ButtonStyles, ButtonVariant } from './types';
import { ComponentSize } from '../../types/size';
import { ButtonStyles, ButtonVariant } from './types';
import { cx } from 'emotion';
type CommonProps = {
size?: ButtonSize;
size?: ComponentSize;
variant?: ButtonVariant;
/**
* icon prop is a temporary solution. It accepts legacy icon class names for the icon to be rendered.