@@ -533,19 +533,8 @@ import { FilterLiveForm, TextInput, NullableBooleanInput } from 'react-admin';
533533
534534const PostFilterForm = () => (
535535 < FilterLiveForm>
536- < Box
537- sx= {{
538- display: " flex" ,
539- alignItems: " flex-end" ,
540- mb: 1
541- }}
542- >
543- < Box
544- component= " span"
545- sx= {{
546- mr: 2
547- }}
548- >
536+ < Box sx= {{ display: " flex" , alignItems: " flex-end" , mb: 1 }}>
537+ < Box component= " span" sx= {{ mr: 2 }}>
549538 {/* Full-text search filter. We don't use <SearchFilter> to force a large form input */ }
550539 < TextInput
551540 resettable
@@ -561,12 +550,7 @@ const PostFilterForm = () => (
561550 }}
562551 / >
563552 < / Box>
564- < Box
565- component= " span"
566- sx= {{
567- mr: 2
568- }}
569- >
553+ < Box component= " span" sx= {{ mr: 2 }}>
570554 {/* Commentable filter */ }
571555 < NullableBooleanInput
572556 helperText= {false }
@@ -618,19 +602,8 @@ const PostFilterForm = () => {
618602 return (
619603 < FormProvider {... form}>
620604 < form onSubmit= {form .handleSubmit (onSubmit)}>
621- < Box
622- sx= {{
623- display: " flex" ,
624- alignItems: " flex-end" ,
625- mb: 1
626- }}
627- >
628- < Box
629- component= " span"
630- sx= {{
631- mr: 2
632- }}
633- >
605+ < Box sx= {{ display: " flex" , alignItems: " flex-end" , mb: 1 }}>
606+ < Box component= " span" sx= {{ mr: 2 }}>
634607 {/* Full-text search filter. We don't use <SearchFilter> to force a large form input */ }
635608 < TextInput
636609 resettable
@@ -646,39 +619,19 @@ const PostFilterForm = () => {
646619 }}
647620 / >
648621 < / Box>
649- < Box
650- component= " span"
651- sx= {{
652- mr: 2
653- }}
654- >
622+ < Box component= " span" sx= {{ mr: 2 }}>
655623 {/* Commentable filter */ }
656624 < NullableBooleanInput
657625 helperText= {false }
658626 source= " commentable"
659627 / >
660628 < / Box>
661- < Box
662- component= " span"
663- sx= {{
664- mr: 2 ,
665- mb: 1.5
666- }}
667- >
668- < Button
669- variant= " outlined"
670- color= " primary"
671- type= " submit"
672- >
629+ < Box component= " span" sx= {{ mr: 2 , mb: 1.5 }}>
630+ < Button variant= " outlined" color= " primary" type= " submit" >
673631 Filter
674632 < / Button>
675633 < / Box>
676- < Box
677- component= " span"
678- sx= {{
679- mb: 1.5
680- }}
681- >
634+ < Box component= " span" sx= {{ mb: 1.5 }}>
682635 < Button variant= " outlined" onClick= {resetFilter}>
683636 Close
684637 < / Button>
@@ -701,11 +654,7 @@ import { TopToolbar, ExportButton } from 'react-admin';
701654import { Box } from ' @mui/material' ;
702655
703656const ListActions = () => (
704- < Box
705- sx= {{
706- width: " 100%"
707- }}
708- >
657+ < Box sx= {{ width: " 100%" }}>
709658 < TopToolbar>
710659 < PostFilterButton / >
711660 < ExportButton / >
0 commit comments