Skip to content

Commit

Permalink
feat(frontend): link recipe card to dish
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtftr committed May 17, 2024
1 parent 970381c commit 432b806
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/Recipe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ export const Recipe = ({
<img src={TimeIcon} alt="Time icon" className="h-6 w-6" />
<span className="text-sm">{cookTime}</span>
</div>

{dish && (
<div className="flex items-center gap-2">
<Link to={`/dishes/${dish.id}`} className="flex items-center gap-2">
<img src={FoodIcon} alt="Food icon" className="h-6 w-6" />
<span className="text-sm">{dish.name}</span>
</div>
</Link>
)}
{author && author.profilePicture && (
<div className="flex items-center">
Expand Down

0 comments on commit 432b806

Please sign in to comment.