Merge 7c170bdbb4b1307993f9a808925f1578c3a6a3b3 into 694c5c17bacd96c8b202a705423e5f4d9a8c93ba

This commit is contained in:
stepan 2024-10-05 16:23:16 +00:00 committed by GitHub
commit c76244f993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,11 +14,11 @@ export default function OpenCart({
className={clsx('h-4 transition-all ease-in-out hover:scale-110', className)}
/>
{quantity ? (
{quantity &&
<div className="absolute right-0 top-0 -mr-2 -mt-2 h-4 w-4 rounded bg-blue-600 text-[11px] font-medium text-white">
{quantity}
</div>
) : null}
}
</div>
);
}