mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
refactor: remove redundant fragment
This commit is contained in:
parent
c1b1dacc78
commit
c1638b4209
|
@ -82,42 +82,38 @@ 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"
|
aria-describedby="alert-dialog-description"
|
||||||
aria-describedby="alert-dialog-description"
|
>
|
||||||
>
|
<DialogTitle id="alert-dialog-title">{"Syncing Trades"}</DialogTitle>
|
||||||
<DialogTitle id="alert-dialog-title">{"Syncing Trades"}</DialogTitle>
|
<DialogContent>
|
||||||
<DialogContent>
|
<DialogContentText id="alert-dialog-description">
|
||||||
<DialogContentText id="alert-dialog-description">
|
The environment is syncing trades from the exchange sessions.
|
||||||
The environment is syncing trades from the exchange sessions.
|
Please wait a moment...
|
||||||
Please wait a moment...
|
</DialogContentText>
|
||||||
</DialogContentText>
|
<Box m={2}>
|
||||||
<Box m={2}>
|
<LinearProgress/>
|
||||||
<LinearProgress/>
|
</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"
|
aria-describedby="alert-dialog-description"
|
||||||
aria-describedby="alert-dialog-description"
|
>
|
||||||
>
|
<DialogTitle id="alert-dialog-title">{"Loading"}</DialogTitle>
|
||||||
<DialogTitle id="alert-dialog-title">{"Loading"}</DialogTitle>
|
<DialogContent>
|
||||||
<DialogContent>
|
<DialogContentText id="alert-dialog-description">
|
||||||
<DialogContentText id="alert-dialog-description">
|
Loading...
|
||||||
Loading...
|
</DialogContentText>
|
||||||
</DialogContentText>
|
<Box m={2}>
|
||||||
<Box m={2}>
|
<LinearProgress/>
|
||||||
<LinearProgress/>
|
</Box>
|
||||||
</Box>
|
</DialogContent>
|
||||||
</DialogContent>
|
</Dialog>
|
||||||
</Dialog>
|
|
||||||
</React.Fragment>
|
|
||||||
)) : (
|
)) : (
|
||||||
<Component {...pageProps}/>
|
<Component {...pageProps}/>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user