Skip to content

Commit

Permalink
fix: 꿀조합 페이지로 이동하지 않는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Apr 18, 2024
1 parent f5b1dfa commit e8f4b21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Recipe/RecipeItem/RecipeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
RECIPE_CARD_DEFAULT_IMAGE_URL_4,
RECIPE_CARD_DEFAULT_IMAGE_URL_5,
} from '@/constants/image';
import { PATH } from '@/constants/path';
import RecipeItemProvider from '@/contexts/RecipeItemContext';
import { useRecipeItemValueContext } from '@/hooks/context';
import type { Recipe } from '@/types/recipe';
Expand All @@ -50,7 +51,7 @@ const RecipeItem = ({ recipe, children }: RecipeItemProps) => {

return (
<RecipeItemProvider recipe={recipe}>
<Link to={`${id}`}>{children}</Link>
<Link to={`${PATH.RECIPE}/${id}`}>{children}</Link>
</RecipeItemProvider>
);
};
Expand Down

0 comments on commit e8f4b21

Please sign in to comment.