Skip to content

Commit

Permalink
psp-5791: add assignee to tenant types
Browse files Browse the repository at this point in the history
  • Loading branch information
buddy326 committed Jun 26, 2023
1 parent bc4b795 commit 4186671
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,28 @@ export const ViewTenantForm: React.FunctionComponent<React.PropsWithChildren<ITe
name={withNameSpace(nameSpace, 'properties')}
render={renderProps => (
<>
<Section header="Assignee">
{tenants.map(
(tenant: FormTenant, index) =>
tenant.tenantType === 'ASGN' && (
<div key={`tenants-${index}`}>

Check warning on line 184 in source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx

View check run for this annotation

Codecov / codecov/patch

source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx#L184

Added line #L184 was not covered by tests
<>
{tenant.organizationId ? (
<TenantOrganizationContactInfo

Check warning on line 187 in source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx

View check run for this annotation

Codecov / codecov/patch

source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx#L187

Added line #L187 was not covered by tests
disabled={true}
nameSpace={withNameSpace(nameSpace, `tenants.${index}`)}
/>
) : (
<TenantPersonContactInfo

Check warning on line 192 in source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx

View check run for this annotation

Codecov / codecov/patch

source/frontend/src/features/leases/detail/LeasePages/tenant/ViewTenantForm.tsx#L192

Added line #L192 was not covered by tests
disabled={true}
nameSpace={withNameSpace(nameSpace, `tenants.${index}`)}
/>
)}
</>
</div>
),
)}
</Section>
<Section header="Tenant">
{tenants.map(
(tenant: FormTenant, index) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,26 @@ exports[`Tenant component renders as expected 1`] = `
<div
class="c0 c1"
>
<div
class="c2 form-section"
>
<h2
class="c3"
>
<div
class="no-gutters row"
>
<div
class="col"
>
Assignee
</div>
</div>
</h2>
<div
class="collapse show"
/>
</div>
<div
class="c2 form-section"
>
Expand Down

0 comments on commit 4186671

Please sign in to comment.