From 40ff902cace3d084b54c03acd9ae227c0cc5bf2d Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 1 Oct 2021 10:59:46 +0200 Subject: [PATCH] Redirect youtube videos to youtuube --- components/links-list-item.tsx | 4 +++- components/watch/video-grid-item.tsx | 5 +++-- pages/index.tsx | 3 ++- pages/watch/index.tsx | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/components/links-list-item.tsx b/components/links-list-item.tsx index a2022e1f9..06aefa826 100644 --- a/components/links-list-item.tsx +++ b/components/links-list-item.tsx @@ -6,15 +6,17 @@ type LinksListItemProps = { title: string; subtitle: string; badgeText?: string; + target?: string; icon?: React.ReactChild; hideSubtitleOnMobile?: boolean; }; export function LinksListItem(props: LinksListItemProps) { - const { title, subtitle, badgeText, icon, hideSubtitleOnMobile = false, href } = props; + const { title, subtitle, badgeText, icon, hideSubtitleOnMobile = false, href, target } = props; return ( {isNew && New} diff --git a/pages/index.tsx b/pages/index.tsx index 69ca9c461..cbac0608e 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -95,8 +95,9 @@ export default function Home(props: HomeProps) { {videos.map(video => ( {videos.map((video, counter) => (