Add an accommodations reservations module #188

Merged
pierre merged 81 commits from accomodation_module into master 2024-06-22 21:30:26 +00:00
2 changed files with 9 additions and 13 deletions
Showing only changes of commit 0b0fe6b49e - Show all commits

View File

@ -1,25 +1,24 @@
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
import { import {
Button,
Dialog, Dialog,
DialogTitle, DialogActions,
DialogContent, DialogContent,
DialogContentText, DialogContentText,
DialogActions, DialogTitle,
Button,
Typography,
FormControl, FormControl,
IconButton, IconButton,
InputAdornment, InputAdornment,
InputLabel, InputLabel,
OutlinedInput, OutlinedInput,
Typography,
} from "@mui/material"; } from "@mui/material";
import QRCode from "react-qr-code";
import { import {
AccommodationCalendarURL, AccommodationCalendarURL,
AccommodationsCalendarURLApi, AccommodationsCalendarURLApi,
} from "../../api/accommodations/AccommodationsCalendarURLApi"; } from "../../api/accommodations/AccommodationsCalendarURLApi";
import { VisibilityOff, Visibility } from "@mui/icons-material";
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
import { CopyToClipboard } from "../../widgets/CopyToClipboard"; import { CopyToClipboard } from "../../widgets/CopyToClipboard";
import QRCode from "react-qr-code";
export function InstallCalendarDialog(p: { export function InstallCalendarDialog(p: {
cal?: AccommodationCalendarURL; cal?: AccommodationCalendarURL;
@ -52,7 +51,6 @@ export function InstallCalendarDialog(p: {
</CopyToClipboard> </CopyToClipboard>
</InputAdornment> </InputAdornment>
} }
label="Password"
/> />
<div <div
style={{ style={{

View File

@ -13,19 +13,17 @@ import {
Accommodation, Accommodation,
AccommodationListApi, AccommodationListApi,
} from "../../../api/accommodations/AccommodationListApi"; } from "../../../api/accommodations/AccommodationListApi";
import { useAlert } from "../../../hooks/context_providers/AlertDialogProvider"; import { AccommodationsCalendarURLApi } from "../../../api/accommodations/AccommodationsCalendarURLApi";
import { useConfirm } from "../../../hooks/context_providers/ConfirmDialogProvider"; import { useConfirm } from "../../../hooks/context_providers/ConfirmDialogProvider";
import { useLoadingMessage } from "../../../hooks/context_providers/LoadingMessageProvider"; import { useLoadingMessage } from "../../../hooks/context_providers/LoadingMessageProvider";
import { useSnackbar } from "../../../hooks/context_providers/SnackbarProvider"; import { useSnackbar } from "../../../hooks/context_providers/SnackbarProvider";
import { useCreateAccommodationCalendarURL } from "../../../hooks/context_providers/accommodations/CreateAccommodationCalendarURLDialogProvider";
import { useInstallCalendarDialog } from "../../../hooks/context_providers/accommodations/InstallCalendarDialogProvider";
import { useUpdateAccommodation } from "../../../hooks/context_providers/accommodations/UpdateAccommodationDialogProvider"; import { useUpdateAccommodation } from "../../../hooks/context_providers/accommodations/UpdateAccommodationDialogProvider";
import { useFamily } from "../../../widgets/BaseFamilyRoute"; import { useFamily } from "../../../widgets/BaseFamilyRoute";
import { FamilyCard } from "../../../widgets/FamilyCard"; import { FamilyCard } from "../../../widgets/FamilyCard";
import { TimeWidget } from "../../../widgets/TimeWidget"; import { TimeWidget } from "../../../widgets/TimeWidget";
import { useAccommodations } from "../../../widgets/accommodations/BaseAccommodationsRoute"; import { useAccommodations } from "../../../widgets/accommodations/BaseAccommodationsRoute";
import { useCreateAccommodationCalendarURL } from "../../../hooks/context_providers/accommodations/CreateAccommodationCalendarURLDialogProvider";
import { AccommodationsCalendarURLApi } from "../../../api/accommodations/AccommodationsCalendarURLApi";
import { useInstallCalendarDialog } from "../../../hooks/context_providers/accommodations/InstallCalendarDialogProvider";
import { InstallCalendarDialog } from "../../../dialogs/accommodations/InstallCalendarDialog";
export function AccommodationsSettingsRoute(): React.ReactElement { export function AccommodationsSettingsRoute(): React.ReactElement {
return ( return (