Skip to content

Commit

Permalink
psp-7064 split up legal description and pid. (#3540)
Browse files Browse the repository at this point in the history
* psp-7064 split up legal description and pid.

* snapshot update.

---------

Co-authored-by: Smith <[email protected]>
  • Loading branch information
devinleighsmith and Smith authored Oct 27, 2023
1 parent b45d6f8 commit dded97f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ export const PropertyInformation: React.FunctionComponent<
);
const pid = getIn(formikProps.values, withNameSpace(nameSpace, 'property.pid'));
const pidText = pid ? `PID: ${pidFormatter(pid)}` : '';
const legalPidText = [legalDescription, pidText].filter(x => x).join(' ');
return (
<StyledPropertyInfo>
<SectionField label="PID" labelWidth="3">
{pidText}
</SectionField>
<SectionField label="Descriptive name" labelWidth="3">
<Input disabled={disabled} field={withNameSpace(nameSpace, 'propertyName')} />
</SectionField>
Expand All @@ -57,7 +59,7 @@ export const PropertyInformation: React.FunctionComponent<
</SectionField>
) : null}
<SectionField label="Legal description" labelWidth="3">
{legalPidText}
{legalDescription}
</SectionField>

<hr />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,22 @@ exports[`PropertiesInformation component renders as expected 1`] = `
<div
class="c3"
>
<div
class="pb-2 row"
>
<div
class="pr-0 text-left col-3"
>
<label
class="c4"
>
PID:
</label>
</div>
<div
class="c5 text-left col"
/>
</div>
<div
class="pb-2 row"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ exports[`PropertyInformation component renders a complete lease as expected 1`]
<div
class="c0"
>
<div
class="pb-2 row"
>
<div
class="pr-0 text-left col-3"
>
<label
class="c1"
>
PID:
</label>
</div>
<div
class="c2 text-left col"
/>
</div>
<div
class="pb-2 row"
>
Expand Down Expand Up @@ -160,6 +176,22 @@ exports[`PropertyInformation component renders minimally as expected 1`] = `
<div
class="c0"
>
<div
class="pb-2 row"
>
<div
class="pr-0 text-left col-3"
>
<label
class="c1"
>
PID:
</label>
</div>
<div
class="c2 text-left col"
/>
</div>
<div
class="pb-2 row"
>
Expand Down

0 comments on commit dded97f

Please sign in to comment.