Skip to content

Commit

Permalink
remove default variant in favor of 'S'
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer6497 committed Dec 27, 2024
1 parent 9eca2dd commit 9dbfc15
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/components/BoxWithImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Variant, string> = {
// TODO: Remove after new variant implementation

Check warning on line 16 in app/components/BoxWithImage.tsx

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

Complete the task associated to this "TODO" comment
default: "max-w-[120px]",
ImgMTextL: "max-w-[280px]",
XS: "max-w-[80px]",
S: "max-w-[120px]",
Expand All @@ -33,7 +24,7 @@ export const variantWidths: Record<Variant, string> = {
};

const BoxWithImage = ({
variant = "default",
variant = "S",
identifier,
heading,
image,
Expand Down

0 comments on commit 9dbfc15

Please sign in to comment.