mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update button props
This commit is contained in:
@@ -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}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user