mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-25 00:55:32 +03:00
Refactor media
Change-Id: Ic24c53048c35b76532af24d9c5c9bf831688344b
This commit is contained in:
parent
00ecb29d6b
commit
76ef017244
1 changed files with 11 additions and 13 deletions
|
@ -38,19 +38,17 @@ const DeleteMediaDialog = ({ open, loading, onClose, onSubmit }) => {
|
||||||
return d.getTime();
|
return d.getTime();
|
||||||
};
|
};
|
||||||
|
|
||||||
const DeleteMediaToolbar = props => {
|
const DeleteMediaToolbar = props => (
|
||||||
return (
|
<Toolbar {...props}>
|
||||||
<Toolbar {...props}>
|
<SaveButton
|
||||||
<SaveButton
|
label="resources.delete_media.action.send"
|
||||||
label="resources.delete_media.action.send"
|
icon={<DeleteSweepIcon />}
|
||||||
icon={<DeleteSweepIcon />}
|
/>
|
||||||
/>
|
<Button label="ra.action.cancel" onClick={onClose}>
|
||||||
<Button label="ra.action.cancel" onClick={onClose}>
|
<IconCancel />
|
||||||
<IconCancel />
|
</Button>
|
||||||
</Button>
|
</Toolbar>
|
||||||
</Toolbar>
|
);
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onClose={onClose} loading={loading}>
|
<Dialog open={open} onClose={onClose} loading={loading}>
|
||||||
|
|
Loading…
Reference in a new issue