Propagate success flag.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-31 20:13:39 -03:00
parent e6e3bc2655
commit 819428651e

View File

@ -27,8 +27,8 @@ type ActionDialogProps = {
}; };
const ActionDispatcher = ({ mapsId, action, onClose, fromEditor }: ActionDialogProps): React.ReactElement => { const ActionDispatcher = ({ mapsId, action, onClose, fromEditor }: ActionDialogProps): React.ReactElement => {
const handleOnClose = (): void => { const handleOnClose = (success?: boolean): void => {
onClose(); onClose(success);
}; };
switch (action) { switch (action) {