diff --git a/src/components/Button.jsx b/src/components/Button.jsx index e0a1aae4..61546b8d 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -9,16 +9,15 @@ export const Button = props => { "o-70 cursor-not-allowed": props.disabled, "w-full": props.fullWidth, }); - return ( -
+
{!!props.icon && ( -
+
{props.icon}
)} {!!props.text && ( -
+
{props.text}
)} @@ -27,6 +26,7 @@ export const Button = props => { }; Button.defaultProps = { + testid: "btn", className: "", text: "", textClassName: "", @@ -40,6 +40,7 @@ Button.defaultProps = { export const PrimaryButton = props => (