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,6 +68,9 @@ const ActionButtons: FC<ActionButtonProps> = ({
</ActionButtonRow>
</div>
<div className={styles.mobileActionButtonMenu}>
{(supportsBrowserNotifications ||
supportsBrowserNotifications ||
externalActionButtons.length > 0) && (
<ActionButtonMenu
className={styles.actionButtonMenu}
showFollowItem={supportFediverseFeatures}
@@ -77,6 +80,7 @@ const ActionButtons: FC<ActionButtonProps> = ({
notifyItemSelected={() => setShowNotifyModal(true)}
followItemSelected={() => setShowFollowModal(true)}
/>
)}
</div>
</>
);