Add an accommodations reservations module #188
@ -222,7 +222,6 @@ function BoolIcon(p: { checked?: boolean }): React.ReactElement {
|
|||||||
function AccommodationsCalURLsCard(): React.ReactElement {
|
function AccommodationsCalURLsCard(): React.ReactElement {
|
||||||
const key = React.useRef(0);
|
const key = React.useRef(0);
|
||||||
|
|
||||||
const snackbar = useSnackbar();
|
|
||||||
const confirm = useConfirm();
|
const confirm = useConfirm();
|
||||||
const loading = useLoadingMessage();
|
const loading = useLoadingMessage();
|
||||||
|
|
||||||
@ -262,7 +261,7 @@ function AccommodationsCalURLsCard(): React.ReactElement {
|
|||||||
|
|
||||||
await AccommodationsCalendarURLApi.Delete(c);
|
await AccommodationsCalendarURLApi.Delete(c);
|
||||||
|
|
||||||
snackbar("Le calendrier a été supprimé avec succès !");
|
setSuccess("Le calendrier a été supprimé avec succès !");
|
||||||
reload();
|
reload();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Failed to delete accommodation!", e);
|
console.error("Failed to delete accommodation!", e);
|
||||||
|
Loading…
Reference in New Issue
Block a user