Skip to content

Commit

Permalink
TH-119992: hide the WCB & CGL expiry date
Browse files Browse the repository at this point in the history
  • Loading branch information
bcgov-brwang committed Sep 11, 2024
1 parent 003410d commit 51767a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/js/views/OwnersDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ class OwnersDetail extends React.Component {
{owner.workSafeBCPolicyNumber}
</ColDisplay>
</Col>
<Col lg={4} md={6} sm={12} xs={12}>
<Col lg={4} md={6} sm={12} xs={12} hidden>
<ColDisplay labelProps={{ xs: 6 }} fieldProps={{ xs: 6 }} label="WCB Expiry Date">
{formatDateTime(owner.workSafeBCExpiryDate, Constant.DATE_YEAR_SHORT_MONTH_DAY)}
</ColDisplay>
Expand All @@ -513,7 +513,7 @@ class OwnersDetail extends React.Component {
{owner.cglPolicyNumber}
</ColDisplay>
</Col>
<Col lg={4} md={6} sm={12} xs={12}>
<Col lg={4} md={6} sm={12} xs={12} hidden>
<ColDisplay labelProps={{ xs: 6 }} fieldProps={{ xs: 6 }} label="CGL Policy End Date">
{formatDateTime(owner.cglEndDate, Constant.DATE_YEAR_SHORT_MONTH_DAY)}
</ColDisplay>
Expand Down
8 changes: 4 additions & 4 deletions client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class OwnersPolicyEditDialog extends React.Component {
onSubmit={this.formSubmitted}
>
<Row>
<Col xs={6}>
<Col xs={12}>
<FormGroup controlId="workSafeBCPolicyNumber">
<FormLabel>
WCB Number <sup>*</sup>
Expand All @@ -141,7 +141,7 @@ class OwnersPolicyEditDialog extends React.Component {
</FormGroup>
</Col>
<Col xs={6}>
<FormGroup controlId="workSafeBCExpiryDate">
<FormGroup controlId="workSafeBCExpiryDate" hidden>
<FormLabel>WCB Expiry Date</FormLabel>
<DateControl
id="workSafeBCExpiryDate"
Expand All @@ -167,14 +167,14 @@ class OwnersPolicyEditDialog extends React.Component {
</Col>
</Row>
<Row>
<Col xs={6}>
<Col xs={12}>
<FormGroup controlId="cglPolicyNumber">
<FormLabel>CGL Policy Number</FormLabel>
<FormInputControl type="text" value={this.state.cglPolicyNumber} updateState={this.updateState} />
</FormGroup>
</Col>
<Col xs={6}>
<FormGroup controlId="cglEndDate">
<FormGroup controlId="cglEndDate" hidden>
<FormLabel>CGL Policy End Date</FormLabel>
<DateControl
id="cglEndDate"
Expand Down

0 comments on commit 51767a0

Please sign in to comment.