Normalize filename and url in videos

This commit is contained in:
Kamran Ahmed
2021-09-03 16:21:20 +02:00
parent ac984346e8
commit e800e3b6ce
9 changed files with 90 additions and 78 deletions

View File

@@ -69,7 +69,7 @@ export default function Home(props: HomeProps) {
href={guide.url}
title={guide.title}
badgeText={guide.isPro ? 'PRO' : ''}
subtitle={guide.formattedUpdatedAt}
subtitle={guide.formattedUpdatedAt!}
/>
))}
<DimmedMore href={'/guides'} text='View all Guides' />
@@ -87,7 +87,7 @@ export default function Home(props: HomeProps) {
{videos.map(video => (
<LinksListItem
key={video.id}
href={video.url}
href={`/watch/${video.id}`}
badgeText={video.isPro ? 'PRO' : ''}
hideSubtitleOnMobile
title={video.title}