diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-10-05 16:01:41 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-10-05 16:01:41 -0700 |
| commit | 73b27fe585ac4fe7dd05f83e8309712c47dd0dfb (patch) | |
| tree | 378b5526ebeb95cbcbdacc40afa7e3d79b6f38e7 /src/components/ChannelCard/ChannelCard.tsx | |
| parent | 14005a85f9d5ba575467e6012ef1d41bd0dda13d (diff) | |
fix: make channel button clickable
Diffstat (limited to 'src/components/ChannelCard/ChannelCard.tsx')
| -rw-r--r-- | src/components/ChannelCard/ChannelCard.tsx | 2 |
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 |
