Skip to content

Commit

Permalink
Small code changes + modal design adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Hundal committed Nov 28, 2023
1 parent f2d94c8 commit 3ef75cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const AmendModal= ({
</DialogTitle>
<DialogContent>
<DialogContentText component={'span'}>
<span className="confirmation-message" style={{display: "flex", flexDirection: "row", justifyContent: "center", color: "black"}}>
<span className="confirmation-message" style={{display: "flex", flexDirection: "row", justifyContent: "center", color: "black", marginLeft: "35px"}}>
Are you sure you want to amend this completed OIPC review? You will need to re-select an outcome to close it again.
</span>
</DialogContentText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ const OIPCItem = (props) => {
const reviewtype = oipcReviewtypes.find(reviewtype => reviewtype.reviewtypeid === oipcObj.reviewtypeid && reviewtype.reasonid === oipcObj.reasonid);
const status = oipcStatuses.find(status => status.statusid === oipcObj.statusid);
const outcome = oipcOutcomes.find(outcome => outcome.outcomeid === oipcObj.outcomeid);

setOipc((prev) => {
return {...prev, reviewtypeName: reviewtype ? reviewtype.type_name : ""}
})
setOipc((prev) => {
return {...prev, statusName: status ? status.status : ""}
return {...prev, statusName: status ? status.name : ""}
})
setOipc((prev) => {
return {...prev, outcomeName: outcome ? outcome.outcome : ""}
return {...prev, outcomeName: outcome ? outcome.name : ""}
})
setOipc((prev) => {
return {...prev, reasonName: reviewtype ? reviewtype.reason_name : ""}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const OutcomeModal= ({
</DialogTitle>
<DialogContent>
<DialogContentText component={'span'}>
<span className="confirmation-message" style={{display: "flex", flexDirection: "row", justifyContent: "center", color: "black"}}>
<span className="confirmation-message" style={{display: "flex", flexDirection: "row", justifyContent: "center", color: "black", marginLeft: "35px"}}>
Are you sure you are ready to select an outcome? This will complete the review and lock all fields.
</span>
</DialogContentText>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.align-division{
text-align: center;
}
Expand Down

0 comments on commit 3ef75cc

Please sign in to comment.