Update
This commit is contained in:
parent
572117745a
commit
0b0fe6b49e
@ -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={{
|
||||||
|
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user