@@ -15,7 +15,7 @@ import {
1515} from "@churchapps/apphelper" ;
1616import { useReactToPrint } from "react-to-print" ;
1717import {
18- Grid , Icon , Table , TableBody , TableRow , TableCell , TableHead , Card , Box , Typography , Stack
18+ Grid , Icon , Table , TableBody , TableRow , TableCell , TableHead , Card , Box , Typography , Stack
1919} from "@mui/material" ;
2020import { useQuery } from "@tanstack/react-query" ;
2121
@@ -146,7 +146,7 @@ export const FormSubmissions: React.FC<Props> = memo((props) => {
146146 const results : JSX . Element [ ] = [ ] ;
147147 summary . forEach ( ( s : any , i : number ) => {
148148 results . push (
149- < Grid xs = { 12 } md = { 6 } key = { s . id + "-" + i } >
149+ < Grid size = { { xs : 12 , md : 6 } } key = { s . id + "-" + i } >
150150 < h4 > { s . title } </ h4 >
151151 { getResultCount ( s . values ) }
152152 </ Grid >
@@ -220,11 +220,11 @@ export const FormSubmissions: React.FC<Props> = memo((props) => {
220220 formSubmissions . data ?. forEach ( ( submission : any , i : number ) => {
221221 // Process the submission data inline
222222 const processedSubmission = people . data ? setFormSubmissionData ( people . data , submission ) : submission ;
223-
223+
224224 // Allow submissions even without a person ID (anonymous submissions)
225225 const personName = processedSubmission . person ?. name || Locale . label ( "forms.formSubmissions.anon" ) ;
226226 const personId = processedSubmission . person ?. id ;
227-
227+
228228 rows . push (
229229 < TableRow
230230 key = { i }
@@ -315,7 +315,7 @@ export const FormSubmissions: React.FC<Props> = memo((props) => {
315315
316316 return (
317317 < Grid container spacing = { 3 } >
318- < Grid xs = { 12 } md = { 8 } className = "form-submission-summary" >
318+ < Grid size = { { xs : 12 , md : 8 } } className = "form-submission-summary" >
319319 < div ref = { contentRef } className = "form-submission-summary" >
320320 < DisplayBox headerText = { Locale . label ( "forms.formSubmissions.subSum" ) } headerIcon = "group" editContent = { editLinks } >
321321 < Grid container spacing = { 3 } >
0 commit comments