fix(mobile): do not show action menu if there are no actions. Closes #2985

This commit is contained in:
Gabe Kangas
2023-05-04 21:37:52 -07:00
parent 486740ad06
commit c79834a752

View File

@@ -68,15 +68,19 @@ const ActionButtons: FC<ActionButtonProps> = ({
</ActionButtonRow> </ActionButtonRow>
</div> </div>
<div className={styles.mobileActionButtonMenu}> <div className={styles.mobileActionButtonMenu}>
<ActionButtonMenu {(supportsBrowserNotifications ||
className={styles.actionButtonMenu} supportsBrowserNotifications ||
showFollowItem={supportFediverseFeatures} externalActionButtons.length > 0) && (
showNotifyItem={supportsBrowserNotifications} <ActionButtonMenu
actions={externalActions} className={styles.actionButtonMenu}
externalActionSelected={setExternalActionToDisplay} showFollowItem={supportFediverseFeatures}
notifyItemSelected={() => setShowNotifyModal(true)} showNotifyItem={supportsBrowserNotifications}
followItemSelected={() => setShowFollowModal(true)} actions={externalActions}
/> externalActionSelected={setExternalActionToDisplay}
notifyItemSelected={() => setShowNotifyModal(true)}
followItemSelected={() => setShowFollowModal(true)}
/>
)}
</div> </div>
</> </>
); );