Skip to content

Commit 5a6a066

Browse files
committed
Remove unused index variable
1 parent 8775fe7 commit 5a6a066

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/blogs/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ export default function Blogs(): React.JSX.Element {
236236

237237
<div className="articles-grid">
238238
{filteredBlogs.length > 0 ? (
239-
filteredBlogs.map((blog, index) => (
240-
<BlogCard key={blog.id} blog={blog} index={index} />
239+
filteredBlogs.map((blog) => (
240+
<BlogCard key={blog.id} blog={blog} />
241241
))
242242
) : (
243243
<div className="no-results">
@@ -265,7 +265,7 @@ export default function Blogs(): React.JSX.Element {
265265
);
266266
}
267267

268-
const BlogCard = ({ blog, index }) => {
268+
const BlogCard = ({ blog }) => {
269269
// Get authors for this blog post
270270
const getAuthors = (slug) => {
271271
const authors = authorMapping[slug] || ["recode hive Team"];

0 commit comments

Comments
 (0)