diff --git a/src/components/SearchResult.js b/src/components/SearchResult.js
index dab6b5b..2b98eb7 100644
--- a/src/components/SearchResult.js
+++ b/src/components/SearchResult.js
@@ -1,34 +1,9 @@
import React from "react";
-import { Link } from "react-router-dom";
+import CardEntry from "./CardEntry";
const SearchResult = props => {
const { meal } = props;
- const { idMeal, strMeal, strMealThumb } = meal;
-
- return (
-
-
-
-
-
-
-

- {/*
{strMeal} */}
-
-
-
{strMeal}
-
- {/*
-
-
{strCategoryDescription}
-
-
*/}
-
-
-
-
-
- );
+ return
;
};
export default SearchResult;
diff --git a/src/pages/Category.js b/src/pages/Category.js
index 0283750..8f31f3f 100644
--- a/src/pages/Category.js
+++ b/src/pages/Category.js
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react";
import { useParams, Link, useRouteMatch } from "react-router-dom";
+import CardEntry from "../components/CardEntry";
const CategoryPage = props => {
const [meals, setMeals] = useState({ meals: [] });
@@ -15,28 +16,21 @@ const CategoryPage = props => {
}, []);
const { url } = useRouteMatch();
- // const {
- // strCategory,
- // strCategoryThumb,
- // strCategoryDescription
- // } = props.category;
return (
Chef's {strCategory} Recipes
- {/*

-
{strCategoryDescription}
*/}
{meals.meals.map((meal, i) => (
-
+ {/* */}

- {/*
{meal.strMeal} */}
{meal.strMeal}