aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ChannelCard/ChannelCard.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-10-05 16:01:41 -0700
committerPinapelz <yukais@pinapelz.com>2024-10-05 16:01:41 -0700
commit73b27fe585ac4fe7dd05f83e8309712c47dd0dfb (patch)
tree378b5526ebeb95cbcbdacc40afa7e3d79b6f38e7 /src/components/ChannelCard/ChannelCard.tsx
parent14005a85f9d5ba575467e6012ef1d41bd0dda13d (diff)
fix: make channel button clickable
Diffstat (limited to 'src/components/ChannelCard/ChannelCard.tsx')
-rw-r--r--src/components/ChannelCard/ChannelCard.tsx2
1 files changed, 1 insertions, 1 deletions
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage