mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update button props
This commit is contained in:
@@ -37,7 +37,7 @@ const Button = ({
|
||||
iconLeft={iconLeft || undefined}
|
||||
iconRight={iconRight || undefined}
|
||||
fullWidth={fullWidth}
|
||||
loading={loading}
|
||||
load={loading}
|
||||
disabled={disabled}
|
||||
onClick={onClick}
|
||||
>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user