Use alert when possible
This commit is contained in:
parent
76b186ca0f
commit
b72374481e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user