From 4ef9d0c3b2b30bb117a20724a62489c7c7f5e977 Mon Sep 17 00:00:00 2001 From: Janis Date: Sun, 25 Jun 2023 21:49:37 +0200 Subject: [PATCH] [feature] add boolean to show channel name --- src/App.tsx | 1 + src/Viewer.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index d1b2617..55bd8ee 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -51,6 +51,7 @@ export default function App() { return (
{ if (client.channel?.id === currentChannel?.id) { diff --git a/src/Viewer.tsx b/src/Viewer.tsx index 49bb374..d434f00 100644 --- a/src/Viewer.tsx +++ b/src/Viewer.tsx @@ -4,13 +4,15 @@ import "@styles/Viewer.scss"; export default function Viewer({ clients, channel, + showChannelName = false, }: { clients: IClient[] | undefined; channel: IChannel | undefined; + showChannelName?: boolean; }) { return (
-

{channel?.properties.name}

+ {showChannelName ?

{channel?.properties.name}

: null} {clients?.map((client) => { if (client) { return (