Update button props

This commit is contained in:
Hazem Krimi
2021-05-02 03:58:15 +01:00
parent a8f8077770
commit 8daefcac06
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ const Button = ({
iconLeft={iconLeft || undefined}
iconRight={iconRight || undefined}
fullWidth={fullWidth}
loading={loading}
load={loading}
disabled={disabled}
onClick={onClick}
>
+3 -3
View File
@@ -6,7 +6,7 @@ type WrapperProps = {
variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text';
iconLeft?: React.SVGProps<SVGSVGElement>;
iconRight?: React.SVGProps<SVGSVGElement>;
loading?: boolean;
load?: boolean;
disabled?: boolean;
fullWidth?: boolean;
};
@@ -24,8 +24,8 @@ export const Wrapper = styled.button<WrapperProps>`
align-items: center;
}
${({ iconLeft, iconRight, loading }) => {
if (iconLeft || iconRight || loading)
${({ iconLeft, iconRight, load }) => {
if (iconLeft || iconRight || load)
return css`
display: flex;
flex-direction: row;