Skip to content

Commit 5f73e8b

Browse files
committed
update display of violated requirements texts
1 parent 2ef2d55 commit 5f73e8b

3 files changed

Lines changed: 28 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"private": true,
55
"homepage": "https://foerderfunke.org/",
66
"dependencies": {
7+
"@foerderfunke/matching-engine": "1.5.2",
78
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
89
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
910
"@emotion/react": "^11.11.4",
1011
"@emotion/styled": "^11.11.5",
11-
"@foerderfunke/matching-engine": "^1.5.0",
1212
"@mui/icons-material": "^5.15.19",
1313
"@mui/material": "^5.15.19",
1414
"@mui/x-charts": "^7.6.2",

src/ui/screens/benefit-page/components/BenefitPageRequirements.js

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import RegularButton from '@/ui/shared-components/buttons/RegularButton';
77
import FlowChart from '@/ui/shared-components/flow-chart/FlowChart';
88
import matchingEngineManager from "@/core/managers/matchingEngineManager";
99
import featureFlags from '@/featureFlags';
10+
import ClearIcon from '@mui/icons-material/Clear';
1011

1112

1213
const BenefitPageRequirements = ({ t, validatedStatus, isDesktop, evalGraph }) => {
@@ -59,12 +60,32 @@ const BenefitPageRequirements = ({ t, validatedStatus, isDesktop, evalGraph }) =
5960
<Typography variant="h3" sx={{ fontWeight: 500 }}>
6061
{t('app.benefitPage.requirements.writtenViolationsTitle')}
6162
</Typography>
62-
<VBox sx={{ gap: 1 }}>
63+
<VBox sx={{ gap: 2 }}>
6364
{
6465
violations.map((violation, index) => (
65-
<Typography key={index} variant="body1" sx={{ color: 'error.main' }}>
66-
{violation}
67-
</Typography>
66+
<HBox
67+
key={index}
68+
sx={{ gap: 2, alignItems: 'center' }}
69+
>
70+
<VBox
71+
sx={{
72+
flexShrink: 0,
73+
width: '24px',
74+
height: '24px',
75+
justifyContent: 'center',
76+
alignItems: 'center',
77+
backgroundColor: 'error.light',
78+
borderRadius: '50%',
79+
}}
80+
>
81+
<ClearIcon sx={{ fontSize: '20px' }} />
82+
</VBox>
83+
<Typography
84+
variant="body1" sx={{ color: 'black.main' }}
85+
component="div"
86+
dangerouslySetInnerHTML={{ __html: violation }}
87+
/>
88+
</HBox>
6889
))
6990
}
7091
</VBox>

src/ui/screens/eligibilty-overview/components/EligibilityOverviewFilter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ const EligibilityOverviewFilter = ({ t, filterOptions, filters, onChangeFilters
8989
>
9090
{filterOptions[key].map(item => (
9191
<MenuItem key={item.id} value={item.id}>
92-
<Checkbox checked={!!filters[key]?.includes(item.id)} /> <ListItemText primary={item.label} />
92+
<Checkbox checked={!!filters[key]?.includes(item.id)} />
93+
<ListItemText primary={item.label} />
9394
</MenuItem>
9495
))}
9596
</Select>

0 commit comments

Comments
 (0)