Skip to content

Commit

Permalink
feature(flour-page): remove text for tiny button
Browse files Browse the repository at this point in the history
  • Loading branch information
external-RCZ authored and RobinCar committed Nov 13, 2023
1 parent 3c3c23f commit 591bf38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ui/Cards/AddToCartButton/AddToCartButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ const AddToCartButton: React.FC<IAddToCartButton> = ({
let addImageSize = 22;

if (tiny) {
styleButton.fontSize = "5px";
styleButton.minWidth = "0";
styleButton.padding = "3px";
styleButton.gap = "3px";
addImageSize = 6;
addImageSize = 12;
}

return (
<Button aria-label="Add cart" style={styleButton} onClick={addToCart}>
{t("cards.add-button")}
{!tiny && t("cards.add-button")}
<Image
src={require("public/icons/add.png")}
width={addImageSize}
Expand Down

0 comments on commit 591bf38

Please sign in to comment.