From cd7de98e3f8d66ca639f8ee9e89da68b07ed901f Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Thu, 31 Aug 2023 15:38:34 +0530 Subject: [PATCH] fix: Set mobile availability (#11027) --- apps/web/pages/availability/[schedule].tsx | 141 +++++++++++++----- apps/web/public/static/locales/en/common.json | 1 + 2 files changed, 104 insertions(+), 38 deletions(-) diff --git a/apps/web/pages/availability/[schedule].tsx b/apps/web/pages/availability/[schedule].tsx index 2999798088..d4dd83c381 100644 --- a/apps/web/pages/availability/[schedule].tsx +++ b/apps/web/pages/availability/[schedule].tsx @@ -6,6 +6,7 @@ import dayjs from "@calcom/dayjs"; import { DateOverrideInputDialog, DateOverrideList } from "@calcom/features/schedules"; import Schedule from "@calcom/features/schedules/components/Schedule"; import Shell from "@calcom/features/shell/Shell"; +import { classNames } from "@calcom/lib"; import { availabilityAsString } from "@calcom/lib/availability"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { HttpError } from "@calcom/lib/http-error"; @@ -17,11 +18,6 @@ import { ConfirmationDialogContent, Dialog, DialogTrigger, - Dropdown, - DropdownItem, - DropdownMenuContent, - DropdownMenuSeparator, - DropdownMenuTrigger, Form, Label, showToast, @@ -32,7 +28,7 @@ import { Tooltip, VerticalDivider, } from "@calcom/ui"; -import { Info, MoreHorizontal, Plus, Trash } from "@calcom/ui/components/icon"; +import { Info, MoreVertical, ArrowLeft, Plus, Trash } from "@calcom/ui/components/icon"; import PageWrapper from "@components/PageWrapper"; import { SelectSkeletonLoader } from "@components/availability/SkeletonLoader"; @@ -95,7 +91,7 @@ export default function Availability() { const scheduleId = searchParams?.get("schedule") ? Number(searchParams.get("schedule")) : -1; const fromEventType = searchParams?.get("fromEventType"); const { timeFormat } = me.data || { timeFormat: null }; - const [deleteDialogOpen, setDeleteDialogOpen] = useState(false); + const [openSidebar, setOpenSidebar] = useState(false); const { data: schedule, isLoading } = trpc.viewer.availability.schedule.get.useQuery( { scheduleId }, { @@ -225,33 +221,60 @@ export default function Availability() { - - - +