Skip to content

Commit

Permalink
BG-983 Reg rejection reason (#2585)
Browse files Browse the repository at this point in the history
* Show Rejection Reason on Application Details page

* add RejectionReasonfield to Registration

---------

Co-authored-by: Andrey <SovereignAndrey>
  • Loading branch information
SovereignAndrey authored Dec 11, 2023
1 parent 14ff271 commit f8c13af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pages/Application/Loaded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ export default function Loaded(props: ApplicationDetails) {
{prevVerdict === "Active" ? "Approved" : "Rejected"}
</div>
)}
{r.RegistrationStatus === "Rejected" && (
<div className="flex max-sm:flex-col gap-x-4">
<span className="text-sm font-semibold uppercase">
Rejection reason:
</span>
<span className="uppercase text-sm font-work">
{r.RejectionReason}
</span>
</div>
)}
<div className="flex max-sm:flex-col gap-x-4">
<span className="text-sm font-semibold uppercase">Application ID:</span>
<span className="uppercase text-sm font-work">{r.PK}</span>
Expand Down
1 change: 1 addition & 0 deletions src/types/aws/ap/registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type InitReg = {
SK: "Registration";
RegistrationDate: string /** ISO string*/;
RegistrationStatus: RegistrationStatus;
RejectionReason: string;
UN_SDG: UNSDG_NUMS[];
bank_verification_status: BankVerificationStatus;
};
Expand Down

0 comments on commit f8c13af

Please sign in to comment.