From 42b9243c87622ecb2fc3553ec3f4214b43b43f74 Mon Sep 17 00:00:00 2001 From: Matthew Stankiewicz Date: Wed, 28 Feb 2024 17:31:21 -0500 Subject: [PATCH] ui: reformat participants edit/add styling --- .../sed/edit/sed-participants-edit.jsx | 65 +++++++++++-------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/src/app/components/listing/details/sed/edit/sed-participants-edit.jsx b/src/app/components/listing/details/sed/edit/sed-participants-edit.jsx index 8926b9434d..003cf19271 100755 --- a/src/app/components/listing/details/sed/edit/sed-participants-edit.jsx +++ b/src/app/components/listing/details/sed/edit/sed-participants-edit.jsx @@ -5,6 +5,8 @@ import { AccordionSummary, Box, Button, + CardContent, + IconButton, Table, TableBody, TableCell, @@ -15,6 +17,7 @@ import { } from '@material-ui/core'; import AddIcon from '@material-ui/icons/Add'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; +import RemoveCircleOutlineIcon from '@material-ui/icons/RemoveCircleOutline'; import { object } from 'prop-types'; import ChplSedParticipantAdd from './sed-participant-add'; @@ -154,7 +157,7 @@ function ChplSedParticipantsEdit({ task: initialTask }) { Occupation - Education Type + Education Type Product Experience (Months) Professional Experience (Months) Computer Experience (Months) @@ -169,7 +172,7 @@ function ChplSedParticipantsEdit({ task: initialTask }) { .map((participant) => ( { participant.occupation } - { participant.educationType.name } + { participant.educationType.name } { participant.productExperienceMonths } { participant.professionalExperienceMonths } { participant.computerExperienceMonths } @@ -179,45 +182,51 @@ function ChplSedParticipantsEdit({ task: initialTask }) { { task.testParticipants.some((p) => ((p.id ?? p.uniqueId) === (participant.id ?? participant.uniqueId))) ? ( - + + ) : ( - + + )} ))} - { !addingParticipant - && ( - - - - )} - { addingParticipant - && ( - - )} + <> + { !addingParticipant + && ( + + + + )} + { addingParticipant + && ( + <> + + + + + )} + ); }