Hide add FAB at task limit
This commit is contained in:
@@ -1555,17 +1555,19 @@ export default function MobileEventTasksPage() {
|
||||
</AlertDialog.Portal>
|
||||
</AlertDialog>
|
||||
|
||||
<FloatingActionButton
|
||||
onPress={() => {
|
||||
if (!canAddTasks) {
|
||||
toast.error(limitReachedMessage);
|
||||
return;
|
||||
}
|
||||
setShowFabMenu(true);
|
||||
}}
|
||||
label={t('events.tasks.add', 'Add')}
|
||||
icon={Plus}
|
||||
/>
|
||||
{canAddTasks ? (
|
||||
<FloatingActionButton
|
||||
onPress={() => {
|
||||
if (!canAddTasks) {
|
||||
toast.error(limitReachedMessage);
|
||||
return;
|
||||
}
|
||||
setShowFabMenu(true);
|
||||
}}
|
||||
label={t('events.tasks.add', 'Add')}
|
||||
icon={Plus}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
<MobileSheet
|
||||
open={showFabMenu}
|
||||
|
||||
Reference in New Issue
Block a user