Skip to content

Commit

Permalink
fix: remove tag list
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Dec 22, 2024
1 parent e1803f9 commit 3079a06
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/articles/[slug]/_features/ArticleMetaDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Image from "next/image";

import { MyAvatar, Time } from "@/app/_components";
import { Tag } from "@/app/_features";
import { format } from "@/app/_utils";
import type { Article } from "contentlayer/generated";
import type { FC } from "react";
Expand All @@ -11,7 +10,7 @@ interface Props {
}

export const ArticleMetaDetail: FC<Props> = ({
article: { headingImage, title, publishedAt: _publishedAt, tags },
article: { headingImage, title, publishedAt: _publishedAt },
}) => {
const publishedAt = format(new Date(_publishedAt));

Expand Down Expand Up @@ -45,11 +44,6 @@ export const ArticleMetaDetail: FC<Props> = ({
<span className="text-sm text-foreground-sub leading-none">5 min read</span>
</div>
</div>
<div className="mt-4 md:mt-8 flex justify-center gap-2">
{tags.map((tag) => (
<Tag key={tag} tag={tag} />
))}
</div>
</div>
);
};

0 comments on commit 3079a06

Please sign in to comment.