diff --git a/src/ui/modal/modalRemoveFile/view.jsx b/src/ui/modal/modalRemoveFile/view.jsx index cfbd9094e..dae3fa8b7 100644 --- a/src/ui/modal/modalRemoveFile/view.jsx +++ b/src/ui/modal/modalRemoveFile/view.jsx @@ -18,10 +18,12 @@ type Props = { }; function ModalRemoveFile(props: Props) { - const { uri, claimIsMine, closeModal, deleteFile, title } = props; + const { uri, claimIsMine, closeModal, deleteFile, title, claim } = props; const [deleteChecked, setDeleteChecked] = usePersistedState('modal-remove-file:delete', true); const [abandonChecked, setAbandonChecked] = usePersistedState('modal-remove-file:abandon', true); + console.log({ claim }); + return (
@@ -32,20 +34,28 @@ function ModalRemoveFile(props: Props) {
deleteFile(uri, deleteChecked, claimIsMine ? abandonChecked : false)}> setDeleteChecked(!deleteChecked)} /> {claimIsMine && ( - setAbandonChecked(!abandonChecked)} - /> +
+ setAbandonChecked(!abandonChecked)} + /> + {abandonChecked === false && ( +

+ This file is removed from your publishes area and you can't remove the deposit from the claim page + anymore +

+ )} +
)}