diff --git a/client/src/components/recipe/RecipeCard.tsx b/client/src/components/recipe/RecipeCard.tsx index ce55e76..a189a4e 100644 --- a/client/src/components/recipe/RecipeCard.tsx +++ b/client/src/components/recipe/RecipeCard.tsx @@ -7,9 +7,9 @@ type RecipeCardProps = { export function RecipeCard({ recipe }: RecipeCardProps) { return ( -
- {recipe.title}/ -

{recipe.title}

+
+ {recipe.title}/ +

{recipe.title}

{recipe.prepTime} minutter

{recipe.portions} porsjoner

diff --git a/client/src/components/recipe/RecipeList.tsx b/client/src/components/recipe/RecipeList.tsx index dad884a..cf72f88 100644 --- a/client/src/components/recipe/RecipeList.tsx +++ b/client/src/components/recipe/RecipeList.tsx @@ -8,9 +8,9 @@ type RecipeListProps = { export function RecipeList({ recipes }: RecipeListProps) { return ( -
    +
      {recipes.map((recipe)=> ( -
    • +
    • ))} diff --git a/client/src/routes/RecipeListPage.tsx b/client/src/routes/RecipeListPage.tsx index 59cc546..9db5c1a 100644 --- a/client/src/routes/RecipeListPage.tsx +++ b/client/src/routes/RecipeListPage.tsx @@ -1,4 +1,6 @@ import { useSearchParams } from 'react-router'; +import { RecipeList } from '../components/recipe/RecipeList'; +import { recipes} from '../mocks/recipes'; // Listen over alle oppskrifter eller søksresultatet // Selve søkefeltet ligger i headeren. Resultatene kobles til senere. @@ -11,6 +13,7 @@ export default function RecipeListPage() {

      Oppskrifter

      {query &&

      Alt med «{query}»

      } + ); }