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} iconLeft={iconLeft || undefined}
iconRight={iconRight || undefined} iconRight={iconRight || undefined}
fullWidth={fullWidth} fullWidth={fullWidth}
loading={loading} load={loading}
disabled={disabled} disabled={disabled}
onClick={onClick} onClick={onClick}
> >
+3 -3
View File
@@ -6,7 +6,7 @@ type WrapperProps = {
variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text'; variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text';
iconLeft?: React.SVGProps<SVGSVGElement>; iconLeft?: React.SVGProps<SVGSVGElement>;
iconRight?: React.SVGProps<SVGSVGElement>; iconRight?: React.SVGProps<SVGSVGElement>;
loading?: boolean; load?: boolean;
disabled?: boolean; disabled?: boolean;
fullWidth?: boolean; fullWidth?: boolean;
}; };
@@ -24,8 +24,8 @@ export const Wrapper = styled.button<WrapperProps>`
align-items: center; align-items: center;
} }
${({ iconLeft, iconRight, loading }) => { ${({ iconLeft, iconRight, load }) => {
if (iconLeft || iconRight || loading) if (iconLeft || iconRight || load)
return css` return css`
display: flex; display: flex;
flex-direction: row; flex-direction: row;