Use alert when possible
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Pierre HUBERT 2024-06-15 00:57:08 +02:00
parent 76b186ca0f
commit b72374481e

View File

@ -222,7 +222,6 @@ function BoolIcon(p: { checked?: boolean }): React.ReactElement {
function AccommodationsCalURLsCard(): React.ReactElement {
const key = React.useRef(0);
const snackbar = useSnackbar();
const confirm = useConfirm();
const loading = useLoadingMessage();
@ -262,7 +261,7 @@ function AccommodationsCalURLsCard(): React.ReactElement {
await AccommodationsCalendarURLApi.Delete(c);
snackbar("Le calendrier a été supprimé avec succès !");
setSuccess("Le calendrier a été supprimé avec succès !");
reload();
} catch (e) {
console.error("Failed to delete accommodation!", e);