From b7a10179ad392be8bfbe714b83f445180d954f91 Mon Sep 17 00:00:00 2001 From: Artemy Date: Thu, 10 Aug 2023 10:23:47 +0300 Subject: [PATCH] fix: channel tabs --- src/pages/channel.tsx | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/src/pages/channel.tsx b/src/pages/channel.tsx index 31a1f5c..25d419a 100644 --- a/src/pages/channel.tsx +++ b/src/pages/channel.tsx @@ -6,7 +6,7 @@ import { VideoContainer, } from "../components/video"; import { useParams, useSearchParams } from "react-router-dom"; -import { Card, CardFooter } from "@nextui-org/react"; +import { Button, Card, CardFooter } from "@nextui-org/react"; import { capitalize } from "../components/utils"; export default function ChannelPage() { @@ -48,45 +48,41 @@ export default function ChannelPage() { } else { return (
-
- -
- -
- -
-
- {channel.name} -
+ +
+ +
+ +
+
+ {channel.name}
- - -
+
+
+
-
-
+
+ {channel.tabs.map((tab, index) => { return ( -
{ setSearchParams({ tabId: String(index) }); setTab(undefined); }} key={tab.name} - className="text-xl font-bold p-4" + className="text-xl font-bold mt-4" > {capitalize(tab.name)} -
+ ); })}