From dcfb64d907fc5f4fc438a920bc93de501fdf2645 Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Tue, 11 Jan 2022 10:46:13 -0600 Subject: [PATCH] Make the hide setting optional and don't use it on the channel page. (#670) --- ui/component/channelContent/view.jsx | 1 + ui/component/scheduledStreams/view.jsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/component/channelContent/view.jsx b/ui/component/channelContent/view.jsx index be12f66b9..c3781d3b8 100644 --- a/ui/component/channelContent/view.jsx +++ b/ui/component/channelContent/view.jsx @@ -150,6 +150,7 @@ function ChannelContent(props: Props) { liveUris={ isChannelBroadcasting && activeLivestreamForChannel.claimUri ? [activeLivestreamForChannel.claimUri] : [] } + showHideSetting={false} /> )} diff --git a/ui/component/scheduledStreams/view.jsx b/ui/component/scheduledStreams/view.jsx index d7473b945..9805ffd21 100644 --- a/ui/component/scheduledStreams/view.jsx +++ b/ui/component/scheduledStreams/view.jsx @@ -17,6 +17,7 @@ type Props = { liveUris: Array, limitClaimsPerChannel?: number, onLoad: (number) => void, + showHideSetting: boolean, // --- perform --- setClientSetting: (string, boolean | string | number, boolean) => void, doShowSnackBar: (string) => void, @@ -31,6 +32,7 @@ const ScheduledStreams = (props: Props) => { setClientSetting, doShowSnackBar, onLoad, + showHideSetting = true, } = props; const isMediumScreen = useIsMediumScreen(); const isLargeScreen = useIsLargeScreen(); @@ -62,7 +64,9 @@ const ScheduledStreams = (props: Props) => { return (
{__('Upcoming Livestreams')} -
); };