mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-09 16:53:33 +02:00
Add month to the new video badge
This commit is contained in:
@@ -77,7 +77,7 @@ export default function Home(props: HomeProps) {
|
||||
target={'_blank'}
|
||||
key={video.id}
|
||||
href={video.youtubeLink!}
|
||||
badgeText={video.isNew ? 'NEW' : ''}
|
||||
badgeText={video.isNew ? `NEW · ${(new Date(video.createdAt)).toLocaleDateString('en-us', { month: 'long'})}` : ''}
|
||||
hideSubtitleOnMobile
|
||||
title={video.title}
|
||||
subtitle={video.duration}
|
||||
|
Reference in New Issue
Block a user