From 9dbfc15b2f0c629c901303717a0921acb50cadf5 Mon Sep 17 00:00:00 2001 From: Spencer Peace Date: Fri, 27 Dec 2024 13:29:09 +0100 Subject: [PATCH] remove default variant in favor of 'S' --- app/components/BoxWithImage.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/components/BoxWithImage.tsx b/app/components/BoxWithImage.tsx index ff8637c58..983256011 100644 --- a/app/components/BoxWithImage.tsx +++ b/app/components/BoxWithImage.tsx @@ -10,19 +10,10 @@ export type BoxWithImageProps = { content?: string; }; -export type Variant = - | "default" - | "ImgMTextL" - | "XS" - | "S" - | "M" - | "L" - | "XL" - | "XXL"; +export type Variant = "ImgMTextL" | "XS" | "S" | "M" | "L" | "XL" | "XXL"; export const variantWidths: Record = { // TODO: Remove after new variant implementation - default: "max-w-[120px]", ImgMTextL: "max-w-[280px]", XS: "max-w-[80px]", S: "max-w-[120px]", @@ -33,7 +24,7 @@ export const variantWidths: Record = { }; const BoxWithImage = ({ - variant = "default", + variant = "S", identifier, heading, image,