Skip to content

Commit

Permalink
Refactor media
Browse files Browse the repository at this point in the history
Change-Id: Ic24c53048c35b76532af24d9c5c9bf831688344b
  • Loading branch information
awesome-manuel committed Feb 7, 2024
1 parent 00ecb29 commit 76ef017
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/components/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,17 @@ const DeleteMediaDialog = ({ open, loading, onClose, onSubmit }) => {
return d.getTime();
};

const DeleteMediaToolbar = props => {
return (
<Toolbar {...props}>
<SaveButton
label="resources.delete_media.action.send"
icon={<DeleteSweepIcon />}
/>
<Button label="ra.action.cancel" onClick={onClose}>
<IconCancel />
</Button>
</Toolbar>
);
};
const DeleteMediaToolbar = props => (
<Toolbar {...props}>
<SaveButton
label="resources.delete_media.action.send"
icon={<DeleteSweepIcon />}
/>
<Button label="ra.action.cancel" onClick={onClose}>
<IconCancel />
</Button>
</Toolbar>
);

return (
<Dialog open={open} onClose={onClose} loading={loading}>
Expand Down

0 comments on commit 76ef017

Please sign in to comment.