From c3fbd35cff6d3e2ec2e1f4ed531e566303970472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 1 Oct 2024 12:55:40 +0200 Subject: [PATCH] fix(SW-302): add back imageWidth fix --- components/TempDesignSystem/Card/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/TempDesignSystem/Card/index.tsx b/components/TempDesignSystem/Card/index.tsx index f3a8f3594..223574ded 100644 --- a/components/TempDesignSystem/Card/index.tsx +++ b/components/TempDesignSystem/Card/index.tsx @@ -11,7 +11,6 @@ import { cardVariants } from "./variants" import styles from "./card.module.css" -import type { ImageVaultAsset } from "@/types/components/imageVault" import type { CardProps } from "./card" export default function Card({ @@ -32,12 +31,12 @@ export default function Card({ imageHeight = imageHeight || 320 - /*imageWidth = + imageWidth = imageWidth || - (backgroundImage + (backgroundImage && "dimensions" in backgroundImage ? backgroundImage.dimensions.aspectRatio * imageHeight : 420) -*/ + return (