Add month to the new video badge
This commit is contained in:
1 parent
913b591988
commit
0d18c02b76
1 file changed
+1
-1
+1
-1
@@ -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