11import React , { useEffect , useState } from "react" ;
22import {
3- Grid ,
43 Button ,
54 Collapse ,
65 Switch ,
@@ -13,6 +12,7 @@ import {
1312 Divider ,
1413 FormControlLabel ,
1514} from "@mui/material" ;
15+ import { Grid } from "@mui/system" ;
1616import SearchIcon from "@mui/icons-material/Search" ;
1717import ClearIcon from "@mui/icons-material/Clear" ;
1818import SettingsIcon from "@mui/icons-material/Settings" ;
@@ -152,7 +152,7 @@ function DomainResultCard({ title, data, isFetching, info, type }) {
152152 ? {
153153 children : (
154154 < Grid container spacing = { 2 } >
155- < Grid item xs = { 12 } >
155+ < Grid item size = { { xs : 12 } } >
156156 { info }
157157 </ Grid >
158158 </ Grid >
@@ -182,12 +182,11 @@ function DomainResultCard({ title, data, isFetching, info, type }) {
182182 ? {
183183 children : (
184184 //4 headers, "Record" and then <CippCodeBlock code={record?.Record} /> under it.
185- < >
185+ ( < >
186186 < Typography variant = "h6" gutterBottom >
187187 Record:
188188 </ Typography >
189189 < CippCodeBlock code = { data ?. Record } />
190-
191190 < CippPropertyListCard
192191 title = "Settings"
193192 copyItems = { true }
@@ -238,7 +237,7 @@ function DomainResultCard({ title, data, isFetching, info, type }) {
238237 value : email ,
239238 } ) ) }
240239 />
241- </ >
240+ </ > )
242241 ) ,
243242 }
244243 : type === "SPF"
@@ -362,7 +361,7 @@ function DomainResultCard({ title, data, isFetching, info, type }) {
362361 }
363362 isFetching = { isFetching }
364363 >
365- < Grid item xs = { 12 } >
364+ < Grid item size = { { xs : 12 } } >
366365 { info }
367366 </ Grid >
368367 < CippOffCanvas visible = { visible } onClose = { ( ) => setVisible ( false ) } { ...offCanvasData } />
@@ -484,7 +483,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
484483 return (
485484 < form onSubmit = { handleSubmit ( onSubmit ) } >
486485 < Grid container spacing = { 3 } >
487- < Grid item xs = { fullwidth ? 12 : 4 } >
486+ < Grid item size = { { xs : fullwidth ? 12 : 4 } } >
488487 < CippButtonCard
489488 title = "Domain Check"
490489 cardSx = { { display : "flex" , flexDirection : "column" , height : "100%" } }
@@ -497,7 +496,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
497496 }
498497 >
499498 < Grid container spacing = { 2 } >
500- < Grid item xs = { 8 } >
499+ < Grid item size = { { xs : 8 } } >
501500 < Controller
502501 name = "domain"
503502 control = { control }
@@ -506,7 +505,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
506505 ) }
507506 />
508507 </ Grid >
509- < Grid item xs = { 4 } >
508+ < Grid item size = { { xs : 4 } } >
510509 < Button type = "submit" variant = "contained" startIcon = { < SearchIcon /> } >
511510 Check
512511 </ Button >
@@ -563,7 +562,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
563562
564563 { domain && (
565564 < >
566- < Grid item xs = { 12 } md = { gridItemSize } >
565+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
567566 < DomainResultCard
568567 title = "Whois Results"
569568 type = "whois"
@@ -576,7 +575,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
576575 }
577576 />
578577 </ Grid >
579- < Grid item xs = { 12 } md = { gridItemSize } >
578+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
580579 < DomainResultCard
581580 title = "NS Records"
582581 data = { nsData }
@@ -589,10 +588,10 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
589588 }
590589 />
591590 </ Grid >
592- < Grid item xs = { 12 } md = { gridItemSize } >
591+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
593592 < MXResultsCard domain = { domain } mxData = { mxData } isFetching = { mxLoading } />
594593 </ Grid >
595- < Grid item xs = { 12 } md = { gridItemSize } >
594+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
596595 < DomainResultCard
597596 title = "SPF Record"
598597 type = "SPF"
@@ -611,7 +610,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
611610 }
612611 />
613612 </ Grid >
614- < Grid item xs = { 12 } md = { gridItemSize } >
613+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
615614 < DomainResultCard
616615 title = "DMARC Policy"
617616 type = "DMARC"
@@ -630,7 +629,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
630629 }
631630 />
632631 </ Grid >
633- < Grid item xs = { 12 } md = { gridItemSize } >
632+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
634633 < DomainResultCard
635634 title = "DKIM Record"
636635 data = { dkimData }
@@ -649,7 +648,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
649648 }
650649 />
651650 </ Grid >
652- < Grid item xs = { 12 } md = { gridItemSize } >
651+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
653652 < DomainResultCard
654653 title = "DNSSEC"
655654 type = { "DNSSEC" }
@@ -666,7 +665,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
666665 }
667666 />
668667 </ Grid >
669- < Grid item xs = { 12 } md = { gridItemSize } >
668+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
670669 < DomainResultCard
671670 title = "MTA-STS"
672671 type = "MTA-STS"
@@ -686,7 +685,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
686685 />
687686 </ Grid >
688687 { enableHttps && (
689- < Grid item xs = { 12 } md = { gridItemSize } >
688+ < Grid item size = { { md : gridItemSize , xs : 12 } } >
690689 < DomainResultCard
691690 title = "HTTPS Certificate"
692691 type = "HTTPS"
0 commit comments