Skip to content

Commit 7f90d0e

Browse files
authored
Update BlogCard to TypeScript with author fetching
Refactor BlogCard component to use TypeScript for props.
1 parent 10e89f3 commit 7f90d0e

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/pages/blogs/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,6 @@ export default function Blogs() {
227227
);
228228
}
229229

230-
const BlogCard = ({ blog }) => {
231-
// Get authors for this blog post
232-
const getAuthors = (slug) => {
233-
const authors = authorMapping[slug] || ["recode hive Team"];
234-
return authors.length > 1 ? authors.join(" & ") : authors[0];
235-
};
236-
237230
const BlogCard = ({ blog }: { blog: (typeof blogs)[number] }) => {
238231
const authors = getAuthorProfiles(blog.authors || []);
239232

0 commit comments

Comments
 (0)