From 026bd80e1505fd3eaba3de60fda726047d025cd9 Mon Sep 17 00:00:00 2001 From: sektordv Date: Fri, 6 Aug 2021 20:54:18 +0200 Subject: [PATCH] hide channelselect instead of disabling --- src/components/AppLayout/AppChannelSelect.tsx | 3 --- src/components/AppLayout/AppLayout.tsx | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/AppLayout/AppChannelSelect.tsx b/src/components/AppLayout/AppChannelSelect.tsx index 6760b7fde..66ad4e3f2 100644 --- a/src/components/AppLayout/AppChannelSelect.tsx +++ b/src/components/AppLayout/AppChannelSelect.tsx @@ -23,13 +23,11 @@ const useStyles = makeStyles( export interface AppChannelSelectProps extends ChannelProps { channels: ChannelFragment[]; - disabled: boolean; onChannelSelect: (id: string) => void; } const AppChannelSelect: React.FC = ({ channels, - disabled, onChannelSelect, selectedChannelId }) => { @@ -40,7 +38,6 @@ const AppChannelSelect: React.FC = ({ onChannelSelect(event.target.value)} /> diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index 36edfdd9e..6bbe3fb20 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -216,10 +216,9 @@ const AppLayout: React.FC = ({ children }) => { .includes("mac")} onClick={() => setNavigatorVisibility(true)} /> - {channel && location.pathname === "/" && ( + {channel && isPickerActive && (