feat: add disabled prop to SolidButton
This commit is contained in:
@@ -63,12 +63,14 @@ export const SolidButton = ({
|
|||||||
children,
|
children,
|
||||||
theme = 'light',
|
theme = 'light',
|
||||||
type = 'submit',
|
type = 'submit',
|
||||||
|
disabled = false,
|
||||||
onClick = undefined
|
onClick = undefined
|
||||||
}) => (
|
}) => (
|
||||||
<StyledSolidButton
|
<StyledSolidButton
|
||||||
type={type}
|
type={type}
|
||||||
className={`btn btn-${theme}`}
|
className={`btn btn-${theme}`}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</StyledSolidButton>
|
</StyledSolidButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user