fix close button
This commit is contained in:
parent
8b9d27e34b
commit
fc0d7bb5d9
|
@ -9,6 +9,9 @@ export function UploadProgressFooter() {
|
|||
UploadProgressContext
|
||||
);
|
||||
|
||||
const handleClose = () => {
|
||||
onClose(null, null);
|
||||
};
|
||||
return (
|
||||
<DialogActions>
|
||||
{uploadStage === UPLOAD_STAGES.FINISH &&
|
||||
|
@ -18,10 +21,7 @@ export function UploadProgressFooter() {
|
|||
{constants.RETRY_FAILED}
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
variant="contained"
|
||||
fullWidth
|
||||
onClick={() => onClose.bind(null)}>
|
||||
<Button variant="contained" fullWidth onClick={handleClose}>
|
||||
{constants.CLOSE}
|
||||
</Button>
|
||||
))}
|
||||
|
|
|
@ -51,6 +51,9 @@ export function UploadProgressTitle() {
|
|||
UploadProgressContext
|
||||
);
|
||||
const toggleExpanded = () => setExpanded((expanded) => !expanded);
|
||||
const handleClose = () => {
|
||||
onClose(null, null);
|
||||
};
|
||||
|
||||
return (
|
||||
<DialogTitle>
|
||||
|
@ -64,7 +67,7 @@ export function UploadProgressTitle() {
|
|||
<IconButtonWithBG onClick={toggleExpanded}>
|
||||
{expanded ? <MinimizeIcon /> : <MaximizeIcon />}
|
||||
</IconButtonWithBG>
|
||||
<IconButtonWithBG onClick={onClose.bind(null)}>
|
||||
<IconButtonWithBG onClick={handleClose}>
|
||||
<Close />
|
||||
</IconButtonWithBG>
|
||||
</Stack>
|
||||
|
|
Loading…
Reference in a new issue