From 63cc5da0923e1c693539903fb8c1c5122d7f0d3f Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 9 Feb 2022 12:56:24 -0300 Subject: [PATCH] Expand override for mobile livestream layout --- ui/component/fileTitleSection/view.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/component/fileTitleSection/view.jsx b/ui/component/fileTitleSection/view.jsx index a8bb6b8ac..d52931d2d 100644 --- a/ui/component/fileTitleSection/view.jsx +++ b/ui/component/fileTitleSection/view.jsx @@ -13,6 +13,7 @@ import I18nMessage from 'component/i18nMessage'; import Button from 'component/button'; import FileDescription from 'component/fileDescription'; import { ENABLE_MATURE } from 'config'; +import { useIsMobile } from 'effects/use-screensize'; type Props = { uri: string, @@ -40,6 +41,8 @@ export default function FileTitleSection(props: Props) { doFetchSubCount, } = props; + const isMobile = useIsMobile(); + React.useEffect(() => { if (channelClaimId) doFetchSubCount(channelClaimId); }, [channelClaimId, doFetchSubCount]); @@ -100,7 +103,7 @@ export default function FileTitleSection(props: Props) { ) : ( <> - + ) }