From 73b27fe585ac4fe7dd05f83e8309712c47dd0dfb Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Sat, 5 Oct 2024 16:01:41 -0700
Subject: fix: make channel button clickable

---
 src/components/ChannelCard/ChannelCard.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/ChannelCard/ChannelCard.tsx')

diff --git a/src/components/ChannelCard/ChannelCard.tsx b/src/components/ChannelCard/ChannelCard.tsx
index 83471f2..8f4fa07 100644
--- a/src/components/ChannelCard/ChannelCard.tsx
+++ b/src/components/ChannelCard/ChannelCard.tsx
@@ -82,7 +82,7 @@ const ChannelCard: React.FC<ChannelCardProps> = ({
         </p>
       </div>
       <button
-        onClick={() => console.log(`Navigate to channel ${channel_id}`)}
+        onClick={() => window.open(`https://youtube.com/channel/${channel_id}`, '_blank')}
         className="w-full bg-red-600 hover:bg-red-700 text-white font-bold py-3 px-6 rounded-lg transition-all duration-200"
       >
         View Channel on YouTube
-- 
cgit v1.2.3

