From 07844e4503c01605ac8e4d8ef31cb617cdff3624 Mon Sep 17 00:00:00 2001 From: quangnhankie Date: Wed, 8 Sep 2021 14:50:09 +0700 Subject: [PATCH] fix:RecipesList --- pages/test.tsx | 2 +- .../modules/recipes/RecipesList/RecipesItem/RecipesItem.tsx | 2 -- src/components/modules/recipes/RecipesList/RecipesList.tsx | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pages/test.tsx b/pages/test.tsx index 9ed255f6c..b92b6f60e 100644 --- a/pages/test.tsx +++ b/pages/test.tsx @@ -68,7 +68,7 @@ export default function Test() { {/* */} - + {/* */} diff --git a/src/components/modules/recipes/RecipesList/RecipesItem/RecipesItem.tsx b/src/components/modules/recipes/RecipesList/RecipesItem/RecipesItem.tsx index 11f772a8d..f43227d5a 100644 --- a/src/components/modules/recipes/RecipesList/RecipesItem/RecipesItem.tsx +++ b/src/components/modules/recipes/RecipesList/RecipesItem/RecipesItem.tsx @@ -1,8 +1,6 @@ import Link from 'next/link'; import React from 'react'; import s from './RecipesItem.module.scss'; - - interface RecipesItem { image:string, name: string, diff --git a/src/components/modules/recipes/RecipesList/RecipesList.tsx b/src/components/modules/recipes/RecipesList/RecipesList.tsx index 3454786f1..6359d4c34 100644 --- a/src/components/modules/recipes/RecipesList/RecipesList.tsx +++ b/src/components/modules/recipes/RecipesList/RecipesList.tsx @@ -2,8 +2,6 @@ import React from 'react'; import PaginationCommon from 'src/components/common/PaginationCommon/PaginationCommon'; import RecipesItem from './RecipesItem/RecipesItem'; import s from './RecipesList.module.scss'; - - interface Props{ recipes:{ id:string, @@ -14,8 +12,6 @@ interface Props{ }[], } - - const RecipesList = ({recipes}:Props) => { return ( <>