Active Product Page back to working again

This commit is contained in:
Belen Curcio
2020-10-19 12:02:17 -03:00
parent 06234ae6c4
commit ab51207548
5 changed files with 39 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ const Swatch: FC<Props & ButtonProps> = ({
}) => {
variant = variant?.toLowerCase()
label = label?.toLowerCase()
// console.log(variant)
const rootClassName = cn(
s.root,
{
@@ -38,6 +38,7 @@ const Swatch: FC<Props & ButtonProps> = ({
<Button
className={rootClassName}
style={color ? { backgroundColor: color } : {}}
{...props}
>
{variant === 'color' && active && (
<span