From 5c63f6d70a3ce3e0cf3820c4a9a47b09de0395c9 Mon Sep 17 00:00:00 2001 From: Amalie Date: Thu, 1 Oct 2026 13:19:49 +0200 Subject: [PATCH] =?UTF-8?q?Kan=20n=C3=A5=20trykke=20p=C3=A5=20RecipeCard?= =?UTF-8?q?=20for=20=C3=A5=20f=C3=A5=20opp=20full=20recipe=20(#37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/recipe/RecipeCard.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/client/src/components/recipe/RecipeCard.tsx b/client/src/components/recipe/RecipeCard.tsx index a189a4e..2cdc3e2 100644 --- a/client/src/components/recipe/RecipeCard.tsx +++ b/client/src/components/recipe/RecipeCard.tsx @@ -1,4 +1,5 @@ import type { Recipe } from '../../types/recipe'; +import { Link } from 'react-router'; // Sier hva komponenten får inn. type RecipeCardProps = { @@ -7,14 +8,16 @@ type RecipeCardProps = { export function RecipeCard({ recipe }: RecipeCardProps) { return ( -
- {recipe.title}/ -

{recipe.title}

-
-

{recipe.prepTime} minutter

-

{recipe.portions} porsjoner

-
-
+ +
+ {recipe.title}/ +

{recipe.title}

+
+

{recipe.prepTime} minutter

+

{recipe.portions} porsjoner

+
+
+ ); }