Hide add FAB at task limit
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-21 10:30:12 +01:00
parent 246e54f970
commit 198fbf6751
2 changed files with 33 additions and 12 deletions

View File

@@ -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}