diff --git a/src/pages/Channels.tsx b/src/pages/Channels.tsx index f7d0b6ce..0d2fa9fe 100644 --- a/src/pages/Channels.tsx +++ b/src/pages/Channels.tsx @@ -9,6 +9,12 @@ import { SidebarSection } from "@components/UI/Sidebar/SidebarSection.js"; import { useState } from "react"; import { Button } from "@components/UI/Button.js"; import { SidebarButton } from "@components/UI/Sidebar/sidebarButton.js"; +import { + Tabs, + TabsContent, + TabsList, + TabsTrigger +} from "@app/components/UI/Tabs.js"; export const getChannelName = (channel: Protobuf.Channel) => channel.settings?.name.length @@ -25,28 +31,7 @@ export const ChannelsPage = (): JSX.Element => { return ( <> - - - {channels.map((channel) => ( - - } - onClick={() => setActiveChannel(channel.config.index)} - /> - ))} - - + { } ]} > - {channels.map( - (channel) => - channel.config.index === activeChannel && ( + + + {channels.map((channel) => ( + + {getChannelName(channel.config)} + + ))} + + {channels.map((channel) => ( + - ) - )} + + ))} + );