-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1504 from hubmapconsortium/bulkUp
capture of network failures
- Loading branch information
Showing
6 changed files
with
117 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
import * as React from 'react'; | ||
import Button from '@mui/material/Button'; | ||
import { styled } from '@mui/material/styles'; | ||
import Dialog from '@mui/material/Dialog'; | ||
import DialogTitle from '@mui/material/DialogTitle'; | ||
import DialogContent from '@mui/material/DialogContent'; | ||
import DialogActions from '@mui/material/DialogActions'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import CloseIcon from '@mui/icons-material/Close'; | ||
import Typography from '@mui/material/Typography'; | ||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; | ||
import {faExclamationTriangle} from "@fortawesome/free-solid-svg-icons"; | ||
|
||
export default function MUIDialog(props) { | ||
|
||
return ( | ||
<React.Fragment> | ||
|
||
<Dialog | ||
// onClose={props.handleClose} | ||
aria-labelledby="customized-dialog-title" | ||
open={props.open} | ||
className="fullDialog" | ||
> | ||
<DialogTitle sx={{ m: 0, p: 2 }} style={{background:"red", color:"white"}} id="customized-dialog-title"> | ||
<FontAwesomeIcon icon={faExclamationTriangle} style={{ fontSize:"2.5rem", marginRight:"20px"}} sx={{padding:1}}/> {props.title} </DialogTitle> | ||
<IconButton | ||
aria-label="close" | ||
onClick={props.handleClose} | ||
style={{ | ||
position: 'absolute', | ||
right: 10, | ||
top: 10, | ||
color: "white", | ||
}} | ||
> | ||
<CloseIcon /> | ||
</IconButton> | ||
<DialogContent dividers> | ||
<Typography dangerouslySetInnerHTML={{ __html:props.message }}> | ||
|
||
</Typography> | ||
</DialogContent> | ||
<DialogActions> | ||
<Button style={{position:"relative",margin:"0 auto 0 auto"}} autoFocus onClick={props.handleClose}> | ||
OK | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
</React.Fragment> | ||
); | ||
} |