refactor: remove redundant fragment

This commit is contained in:
ycdesu 2022-06-10 18:08:26 +08:00
parent c1b1dacc78
commit c1638b4209

View File

@ -82,7 +82,6 @@ export default function MyApp(props) {
<CssBaseline/> <CssBaseline/>
{ {
loading ? (syncing ? ( loading ? (syncing ? (
<React.Fragment>
<Dialog <Dialog
open={syncing} open={syncing}
aria-labelledby="alert-dialog-title" aria-labelledby="alert-dialog-title"
@ -99,9 +98,7 @@ export default function MyApp(props) {
</Box> </Box>
</DialogContent> </DialogContent>
</Dialog> </Dialog>
</React.Fragment>
) : ( ) : (
<React.Fragment>
<Dialog <Dialog
open={loading} open={loading}
aria-labelledby="alert-dialog-title" aria-labelledby="alert-dialog-title"
@ -117,7 +114,6 @@ export default function MyApp(props) {
</Box> </Box>
</DialogContent> </DialogContent>
</Dialog> </Dialog>
</React.Fragment>
)) : ( )) : (
<Component {...pageProps}/> <Component {...pageProps}/>
) )