diff --git a/front/src/app/components/agency/IcUserAgenciesToReview.tsx b/front/src/app/components/agency/IcUserAgenciesToReview.tsx index 03695ee234..3d1134484e 100644 --- a/front/src/app/components/agency/IcUserAgenciesToReview.tsx +++ b/front/src/app/components/agency/IcUserAgenciesToReview.tsx @@ -8,7 +8,7 @@ import { createPortal } from "react-dom"; import { SubmitHandler, useForm } from "react-hook-form"; import { useDispatch } from "react-redux"; import { - AgencyDtoWithoutEmails, + AgencyDtoForAgencyUsersAndAdmins, AgencyId, AgencyRight, RejectIcUserRoleForAgencyParams, @@ -32,77 +32,75 @@ type IcUserAgenciesToReviewModalProps = { mode: "register" | "reject"; }; -function AgencyReviewForm({ +const AgencyReviewForm = ({ agency, setSelectedAgency, selectedUser, setModalProps, }: { - agency: AgencyDtoWithoutEmails; + agency: AgencyDtoForAgencyUsersAndAdmins; selectedUser: User; - setSelectedAgency: (agency: AgencyDtoWithoutEmails) => void; + setSelectedAgency: (agency: AgencyDtoForAgencyUsersAndAdmins) => void; setModalProps: (modalProps: IcUserAgenciesToReviewModalProps) => void; -}) { - return ( -
- {agency.address.streetNumberAndAddress} {agency.address.postcode}{" "} - {agency.address.city} -
- -+ {agency.address.streetNumberAndAddress} {agency.address.postcode}{" "} + {agency.address.city} +
+ +