diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-02-07 22:37:19 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-02-07 22:37:19 +0100 |
| commit | 49c4fcb22985df0e7e2f57fb9991688e35edada4 (patch) | |
| tree | 44d4ea42109a0bbd819521d1269e14b75bc179b5 | |
| parent | 464a6e83b96a400614bea9973aeb0278d03daa0b (diff) | |
| download | opencut-49c4fcb22985df0e7e2f57fb9991688e35edada4.tar.gz | |
refactor: remove AuthorList component
| -rw-r--r-- | apps/web/src/app/blog/page.tsx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/web/src/app/blog/page.tsx b/apps/web/src/app/blog/page.tsx index 9e3b6d11..7518f1e2 100644 --- a/apps/web/src/app/blog/page.tsx +++ b/apps/web/src/app/blog/page.tsx @@ -1,10 +1,8 @@ import type { Metadata } from "next"; import Link from "next/link"; import { BasePage } from "@/app/base-page"; -import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Separator } from "@/components/ui/separator"; import { getPosts } from "@/lib/blog/query"; -import type { Author, Post } from "@/types/blog"; export const metadata: Metadata = { title: "Blog - OpenCut", @@ -47,27 +45,7 @@ function BlogPostItem({ post }: { post: Post }) { <h2 className="text-xl font-semibold">{post.title}</h2> <p className="text-muted-foreground">{post.description}</p> </div> - {post.authors && post.authors.length > 0 && ( - <AuthorList authors={post.authors} /> - )} </div> </Link> ); } - -function AuthorList({ authors }: { authors: Author[] }) { - return ( - <div className="flex items-center gap-2"> - {authors.map((author) => ( - <div key={author.id} className="flex items-center gap-2"> - <Avatar className="size-6 shadow-sm"> - <AvatarImage src={author.image} alt={author.name} /> - <AvatarFallback className="text-xs"> - {author.name.charAt(0).toUpperCase()} - </AvatarFallback> - </Avatar> - </div> - ))} - </div> - ); -} |
