Skip to content

Commit 59242a5

Browse files
authored
[MDS-6730] Add BCMI warning text to missing spots (#3770)
* add bcmi warning text * adding bcmi text to missing spots
1 parent 913c0ed commit 59242a5

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

services/core-web/src/components/Forms/PermitAmendmentForm.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ export class PermitAmendmentForm extends Component {
122122
this.props.initialValues.permit_prefix === "C" ||
123123
this.props.initialValues.permit_prefix === "M";
124124

125-
const showWarning =
126-
this.props?.title?.includes("Edit") ||
127-
this.props?.title?.includes("Add Permit Amendment");
128-
129125
return (
130126
<FormWrapper
131127
onSubmit={this.props.onSubmit}
@@ -230,16 +226,12 @@ export class PermitAmendmentForm extends Component {
230226
/>
231227
</Form.Item>
232228
)}
233-
{showWarning && (
234-
<>
235-
<p>
236-
<b>Warning</b>: Files uploaded here will be visible to the proponent and may be publicly posted on external websites
237-
including BC Mines Information Website without further review. Please ensure all attachments comply with
238-
FOIPPA (Freedom of Information and Protection of Privacy Act) requirements and do not include personal or sensitive information.
239-
</p>
240-
<br />
241-
</>
242-
)}
229+
<p>
230+
<b>Warning</b>: Files uploaded here will be visible to the proponent and may be publicly posted on external websites
231+
including BC Mines Information Website without further review. Please ensure all attachments comply with
232+
FOIPPA (Freedom of Information and Protection of Privacy Act) requirements and do not include personal or sensitive information.
233+
</p>
234+
<br />
243235
<Form.Item label="Upload files">
244236
<Field
245237
id="PermitDocumentFileUpload"

services/core-web/src/tests/components/Forms/__snapshots__/PermitAmendmentForm.spec.tsx.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,13 @@ exports[`PermitAmendmentForm renders properly 1`] = `
602602
class="ant-col border--left--layout ant-col-sm-24 ant-col-md-12"
603603
style="padding-left: 24px; padding-right: 24px;"
604604
>
605+
<p>
606+
<b>
607+
Warning
608+
</b>
609+
: Files uploaded here will be visible to the proponent and may be publicly posted on external websites including BC Mines Information Website without further review. Please ensure all attachments comply with FOIPPA (Freedom of Information and Protection of Privacy Act) requirements and do not include personal or sensitive information.
610+
</p>
611+
<br />
605612
<div
606613
class="ant-form-item"
607614
>

0 commit comments

Comments
 (0)