Skip to content

Commit

Permalink
sync with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
panaC committed Oct 25, 2023
1 parent 0b3e2cc commit 78daca7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import { dialogActions } from "readium-desktop/common/redux/actions";

const DeletePublicationConfirm = (props: { publicationView: PublicationView, trigger: React.ReactNode } & AlertDialog.AlertDialogProps) => {
const [__] = useTranslator();
const [_, remove] = useApi(undefined, "publication/delete", props.publicationView.identifier);
const [_, remove] = useApi(undefined, "publication/delete");
const dispatch = useDispatch();
const removeAction = React.useCallback(() => {
dispatch(dialogActions.closeRequest.build());
remove();
}, [remove]);
remove(props.publicationView.identifier);
}, [remove, props.publicationView.identifier]);

const appOverlayElement = React.useMemo(() => document.getElementById("app-overlay"), []);
return (
Expand Down

0 comments on commit 78daca7

Please sign in to comment.