fix(mobile): do not show action menu if there are no actions. Closes #2985
This commit is contained in:
@@ -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>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user