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.prepTime} minutter - {recipe.portions} porsjoner - - + + + + {recipe.title} + + {recipe.prepTime} minutter + {recipe.portions} porsjoner + + + ); }
{recipe.prepTime} minutter
{recipe.portions} porsjoner