Skip to content

Commit 1b2c36b

Browse files
authored
chore: hide date modified on confirmation page (#5545)
hide date modified
1 parent 6f0a18b commit 1b2c36b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

app/(gcforms)/[locale]/(form filler)/id/[...props]/clientSide.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const FormWrapper = ({
7979
if (submissionId && submissionDate) {
8080
return (
8181
<div className="gc-form-wrapper">
82+
<style dangerouslySetInnerHTML={{ __html: `.gc-date-modified { display: none; }` }} />
8283
<TextPage formId={formRecord.id} formRecord={formRecord} />
8384
{saveAndResume && (
8485
<ToastContainer limit={1} autoClose={5000} containerId="public-facing-form" />
@@ -130,6 +131,7 @@ export const FormWrapper = ({
130131
>
131132
{currentForm}
132133
</Form>
134+
133135
{saveAndResume && (
134136
<ToastContainer limit={1} autoClose={false} containerId="public-facing-form" />
135137
)}

app/(gcforms)/[locale]/(form filler)/id/[...props]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export default async function Page(props0: {
104104
// Note: We can look to remove this route in the future
105105
// With save and resume enabled we will re-render the form vs have a confirmation page route
106106
if (step === "confirmation") {
107+
dateModified = false;
107108
pageContent = (
108109
<div className={classes}>
109110
<TextPage formId={formId} formRecord={formRecord} />

components/clientComponents/globals/DateModified.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const DateModified = ({ updatedAt }: { updatedAt: string | undefined }) =
1212
formattedDate = date.toISOString().slice(0, 10);
1313

1414
return (
15-
<div className="mt-10">
15+
<div className="gc-date-modified mt-10">
1616
{t("dateModified")}: {formattedDate}
1717
</div>
1818
);

0 commit comments

Comments
 (0)