Skip to content

Commit

Permalink
Update post.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
thebkht authored Oct 27, 2023
1 parent 4f1c2d5 commit 6aa58d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/blog/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export default function Post({ post, author, sessionUser, tags }: { post: any, a
<div className="article__tags space-x-2 mx-auto">
{tags.map((tag: any) => (
<Link href={`/tags/${tag.tag.name}`} key={tag.tag.id}>
<Badge variant={"secondary"} className="h-6 w-auto cursor-pointer font-normal capitalize text-sm px-2 py-4">
<<Link href={`/tags/${tag.name}`} key={tag.id}>
<Badge className="bg-primary/30 text-primary px-2.5 my-1 mr-1 hover:text-primary-foreground hover:bg-primary" variant={"secondary"}>
{
//replace - with space
tag.tag.name.replace(/-/g, " ")
Expand Down

0 comments on commit 6aa58d6

Please sign in to comment.