File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 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- }
Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ import { Button } from "../../common/Button";
1616import { Heading } from "../../common/Content/Content" ;
1717import "./FormTitleStep.css" ;
1818
19- const formatter = new Intl . DateTimeFormat ( "en-US" , {
20- dateStyle : "long" ,
21- timeZone : "UTC" ,
22- } ) ;
23-
2419function 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}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments