From c79834a7525b1553520b5f4f9fb95a129947df4f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 4 May 2023 21:37:52 -0700 Subject: [PATCH] fix(mobile): do not show action menu if there are no actions. Closes #2985 --- web/components/ui/Content/ActionButtons.tsx | 22 ++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/web/components/ui/Content/ActionButtons.tsx b/web/components/ui/Content/ActionButtons.tsx index 6b5443e5e..43fadb8cb 100644 --- a/web/components/ui/Content/ActionButtons.tsx +++ b/web/components/ui/Content/ActionButtons.tsx @@ -68,15 +68,19 @@ const ActionButtons: FC = ({
- setShowNotifyModal(true)} - followItemSelected={() => setShowFollowModal(true)} - /> + {(supportsBrowserNotifications || + supportsBrowserNotifications || + externalActionButtons.length > 0) && ( + setShowNotifyModal(true)} + followItemSelected={() => setShowFollowModal(true)} + /> + )}
);