Skip to content

Commit

Permalink
Added a new key and illustration for empty assignments, updated the i…
Browse files Browse the repository at this point in the history
…llustration and text in the Notifications pop-up
  • Loading branch information
mrtavor committed Dec 11, 2024
1 parent 5013dbb commit 37323c4
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/assets/img/illustration_no_assigments.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/features/app_notification/container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ const NotificationContainer = ({
{notifications.length === 0 && (
<Box
sx={{
height: '318px',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
gap: '24px',
}}
>
Expand Down
28 changes: 28 additions & 0 deletions src/features/meetings/my_assignments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import MenuItem from '@components/menuitem';
import MonthContainer from './month_container';
import Select from '@components/select';
import Typography from '@components/typography';
import NoAssigmentsImg from '@assets/img/illustration_no_assigments.svg?component';

const MyAssignments = () => {
const { t } = useAppTranslation();
Expand Down Expand Up @@ -70,6 +71,33 @@ const MyAssignments = () => {
},
}}
>
{personAssignments.length === 0 && (
<Box
sx={{
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
gap: '24px',
}}
>
<NoAssigmentsImg viewBox="0 0 128 128" />
<Stack spacing="8px">
<Typography className="h2">
{t('tr_noAssignmentsYet')}
</Typography>
<Typography
color="var(--grey-400)"
sx={{
maxWidth: '350px',
}}
>
{t('tr_noAssignmentsYetDesc')}
</Typography>
</Stack>
</Box>
)}

<Stack spacing={2.3}>
{personAssignments.map((month) => (
<MonthContainer key={month.month} monthData={month} />
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/congregation.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"tr_ministerialServants": "Ministerial servants",
"tr_studentAssignments": "Student assignments",
"tr_noAssignmentsYet": "No assignments yet",
"tr_noAssignmentsYetDesc": "You don’t have any upcoming assignments, or none that match your current display filter.",
"tr_withTerritory": "With territory",
"tr_withoutTerritory": "Without territory",
"tr_overdue": "Overdue",
Expand Down

0 comments on commit 37323c4

Please sign in to comment.