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

@ -26,7 +26,7 @@ export default function Watch(props: VideosProps) {
<SimpleGrid columns={[1, 1, 2]} mb='30px' spacing={['10px', '10px', '15px']}>
{videos.map((video, counter) => (
<VideoGridItem
href={video.url}
href={`/watch/${video.id}`}
key={video.id}
title={video.title}
subtitle={video.description}