diff --git a/resources/js/admin/mobile/EventTasksPage.tsx b/resources/js/admin/mobile/EventTasksPage.tsx index ad984c7..efbfe21 100644 --- a/resources/js/admin/mobile/EventTasksPage.tsx +++ b/resources/js/admin/mobile/EventTasksPage.tsx @@ -87,9 +87,6 @@ export default function MobileEventTasksPage() { glassBorder, glassShadow, } = useAdminTheme(); - const stickySurface = glassSurface ?? surface; - const stickyBorder = glassBorder ?? border; - const stickyShadow = glassShadow ?? shadow; const isMember = user?.role === 'member'; const [assignedTasks, setAssignedTasks] = React.useState([]); const [library, setLibrary] = React.useState([]); @@ -818,11 +815,17 @@ export default function MobileEventTasksPage() { {t('events.tasks.tabs.library', 'Task Library')} - setActiveTab('collections')}> - + {!canAddTasks ? ( @@ -966,15 +969,21 @@ export default function MobileEventTasksPage() { {t('events.tasks.tabs.emotions', 'Emotions')} - { setEditingEmotion(null); setEmotionForm({ name: '', color: border }); setShowEmotionSheet(true); }} - /> + > + + {t('events.tasks.addEmotion', 'Add emotion')} + + {emotions.length === 0 ? ( @@ -1182,53 +1191,47 @@ export default function MobileEventTasksPage() { - - - - - setSearchTerm(e.target.value)} - placeholder={t('events.tasks.search', 'Search photo tasks')} - compact - /> - - setShowEmotionFilterSheet(true)}> - - - {t('events.tasks.emotionFilterShort', 'Emotion')} - - - {emotionFilter - ? emotions.find((e) => String(e.id) === emotionFilter)?.name ?? t('events.tasks.customEmotion', 'Custom emotion') - : t('events.tasks.allEmotions', 'All')} - - - - + + + + setSearchTerm(e.target.value)} + placeholder={t('events.tasks.search', 'Search photo tasks')} + compact + /> - - + setShowEmotionFilterSheet(true)}> + + + {t('events.tasks.emotionFilterShort', 'Emotion')} + + + {emotionFilter + ? emotions.find((e) => String(e.id) === emotionFilter)?.name ?? t('events.tasks.customEmotion', 'Custom emotion') + : t('events.tasks.allEmotions', 'All')} + + + + + + {taskPanel}