Skip to content

Commit b7eb866

Browse files
authored
Remove form revision date (#557)
1 parent 2e91b10 commit b7eb866

7 files changed

Lines changed: 0 additions & 34 deletions

File tree

src/components/forms/FormContainer/FormContainer.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ export interface FormContainerProps {
3131
/** Optional banner content (Portable Text) to display on the title step. */
3232
banner?: PortableTextProps["value"] | null;
3333

34-
/** The date the form was last updated. */
35-
updatedAt?: string;
36-
3734
/** The PDF metadata for forms that will be generated. */
3835
pdfs?: FormPdfMetadata[];
3936

@@ -49,7 +46,6 @@ export function FormContainer({
4946
title,
5047
description,
5148
banner,
52-
updatedAt,
5349
pdfs,
5450
costs,
5551
inline = false,
@@ -171,7 +167,6 @@ export function FormContainer({
171167
title={title}
172168
description={description}
173169
pdfs={pdfs ?? []}
174-
updatedAt={updatedAt ?? ""}
175170
totalSteps={totalSteps}
176171
onStart={onStart}
177172
headingLevel={inline ? 2 : 1}
@@ -210,7 +205,6 @@ export function FormContainer({
210205
steps,
211206
activeStep,
212207
pdfs,
213-
updatedAt,
214208
title,
215209
description,
216210
banner,

src/components/forms/FormTitleStep/FormTitleStep.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,3 @@
8686
width: 100%;
8787
}
8888
}
89-
90-
.form-title-step-date-updated {
91-
width: 100%;
92-
padding-block-start: var(--space-s);
93-
font-size: var(--step--1);
94-
text-wrap: pretty;
95-
border-top: 1px solid var(--border-color);
96-
}

src/components/forms/FormTitleStep/FormTitleStep.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ import { Button } from "../../common/Button";
1616
import { Heading } from "../../common/Content/Content";
1717
import "./FormTitleStep.css";
1818

19-
const formatter = new Intl.DateTimeFormat("en-US", {
20-
dateStyle: "long",
21-
timeZone: "UTC",
22-
});
23-
2419
function FormInfo({ children }: { children: React.ReactNode }) {
2520
return <ul className="form-info">{children}</ul>;
2621
}
@@ -54,7 +49,6 @@ export interface FormTitleStepProps {
5449
onStart: () => void;
5550
pdfs: FormPdfMetadata[];
5651
totalSteps: number;
57-
updatedAt: string;
5852
headingLevel?: 1 | 2 | 3;
5953
}
6054

@@ -65,7 +59,6 @@ export function FormTitleStep({
6559
onStart,
6660
pdfs,
6761
totalSteps,
68-
updatedAt,
6962
headingLevel = 1,
7063
}: FormTitleStepProps) {
7164
const [device, setDevice] = useState<IDevice | null>(null);
@@ -142,15 +135,6 @@ export function FormTitleStep({
142135
Start
143136
</Button>
144137
</footer>
145-
{updatedAt && (
146-
<div className="form-title-step-date-updated">
147-
Form last revised on{" "}
148-
<time dateTime={updatedAt}>
149-
{formatter.format(new Date(updatedAt))}
150-
</time>
151-
.
152-
</div>
153-
)}
154138
</section>
155139
);
156140
}

src/components/text/FormEmbed.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const pdfs = await getFormPdfMetadata(slug);
2727
title={form.title}
2828
description={form.description}
2929
banner={form.banner}
30-
updatedAt={form._updatedAt}
3130
pdfs={pdfs}
3231
costs={form.costs}
3332
inline

src/pages/forms/court-order-ma-minor/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const pdfs = await getFormPdfMetadata(formSlug);
2424
title={form.title}
2525
description={form.description}
2626
banner={form?.banner}
27-
updatedAt={form?._updatedAt}
2827
pdfs={pdfs}
2928
costs={form?.costs}
3029
/>

src/pages/forms/court-order-ma/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const pdfs = await getFormPdfMetadata(formSlug);
2424
title={form.title}
2525
description={form.description}
2626
banner={form.banner}
27-
updatedAt={form._updatedAt}
2827
pdfs={pdfs}
2928
costs={form.costs}
3029
/>

src/pages/forms/social-security/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const pdfs = await getFormPdfMetadata(formSlug);
2323
slug={formSlug}
2424
title={form.title}
2525
description={form.description}
26-
updatedAt={form._updatedAt}
2726
pdfs={pdfs}
2827
/>
2928
</BaseLayout>

0 commit comments

Comments
 (0)