Skip to content

Commit

Permalink
added link to tag page
Browse files Browse the repository at this point in the history
  • Loading branch information
NazireAta committed Dec 14, 2024
1 parent c297af3 commit ebfd970
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/routes/question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,10 @@ export default function QuestionPage() {
/>
) : (
<div>
{question.tags.map((tag) => (
<Badge key={tag.id}>{tag.name}</Badge>
{question.tags.map((s) => (
<Link to={`/tag/${s.id}`} key={s.name}>
<Badge>{s.name}</Badge>
</Link>
))}
</div>
)}
Expand Down

0 comments on commit ebfd970

Please sign in to comment.