From 4186671696ae8d14e638d73ab1741761d359d002 Mon Sep 17 00:00:00 2001 From: buddy326 Date: Mon, 26 Jun 2023 10:02:37 -0700 Subject: [PATCH] psp-5791: add assignee to tenant types --- .../LeasePages/tenant/ViewTenantForm.tsx | 22 +++++++++++++++++++ .../tenant/__snapshots__/Tenant.test.tsx.snap | 20 +++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx b/source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx index 8eb1cc854f..44ef9ca242 100644 --- a/source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx +++ b/source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx @@ -177,6 +177,28 @@ export const ViewTenantForm: React.FunctionComponent ( <> +
+ {tenants.map( + (tenant: FormTenant, index) => + tenant.tenantType === 'ASGN' && ( +
+ <> + {tenant.organizationId ? ( + + ) : ( + + )} + +
+ ), + )} +
{tenants.map( (tenant: FormTenant, index) => diff --git a/source/frontend/src/features/leases/detail/LeasePages/tenant/__snapshots__/Tenant.test.tsx.snap b/source/frontend/src/features/leases/detail/LeasePages/tenant/__snapshots__/Tenant.test.tsx.snap index 8ef74c47f6..e2dff59288 100644 --- a/source/frontend/src/features/leases/detail/LeasePages/tenant/__snapshots__/Tenant.test.tsx.snap +++ b/source/frontend/src/features/leases/detail/LeasePages/tenant/__snapshots__/Tenant.test.tsx.snap @@ -71,6 +71,26 @@ exports[`Tenant component renders as expected 1`] = `
+
+

+
+
+ Assignee +
+
+

+
+