From 10d3b5f1b9fa35185f70a9e87a201b2c7f60017a Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Tue, 6 Dec 2022 21:02:58 +0800 Subject: [PATCH] Remove the back arrow (#5402) Co-authored-by: niteshsingh1357 Co-authored-by: Matheus Benini Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: gitstart Co-authored-by: Nitesh Singh Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: niteshsingh1357 Co-authored-by: Matheus Benini Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: Nitesh Singh Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: gitstart --- .../booking/pages/AvailabilityPage.tsx | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/apps/web/components/booking/pages/AvailabilityPage.tsx b/apps/web/components/booking/pages/AvailabilityPage.tsx index 15d0ef83a5..7185cd148a 100644 --- a/apps/web/components/booking/pages/AvailabilityPage.tsx +++ b/apps/web/components/booking/pages/AvailabilityPage.tsx @@ -1,7 +1,6 @@ import { useAutoAnimate } from "@formkit/auto-animate/react"; import { EventType } from "@prisma/client"; import * as Popover from "@radix-ui/react-popover"; -import { TFunction } from "next-i18next"; import { useRouter } from "next/router"; import { useReducer, useEffect, useMemo, useState } from "react"; import { Toaster } from "react-hot-toast"; @@ -19,7 +18,6 @@ import { } from "@calcom/embed-core/embed-iframe"; import CustomBranding from "@calcom/lib/CustomBranding"; import classNames from "@calcom/lib/classNames"; -import { WEBSITE_URL } from "@calcom/lib/constants"; import getStripeAppData from "@calcom/lib/getStripeAppData"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import useTheme from "@calcom/lib/hooks/useTheme"; @@ -27,7 +25,6 @@ import notEmpty from "@calcom/lib/notEmpty"; import { getRecurringFreq } from "@calcom/lib/recurringStrings"; import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry"; import { detectBrowserTimeFormat, setIs24hClockInLocalStorage, TimeFormat } from "@calcom/lib/timeFormat"; -import { EventTypeMetaDataSchema } from "@calcom/prisma/zod-utils"; import { trpc } from "@calcom/trpc/react"; import { Icon, DatePicker } from "@calcom/ui"; @@ -48,23 +45,6 @@ import type { AvailabilityPageProps } from "../../../pages/[user]/[type]"; import type { DynamicAvailabilityPageProps } from "../../../pages/d/[link]/[slug]"; import type { AvailabilityTeamPageProps } from "../../../pages/team/[slug]/[type]"; -// Get router variables -const GoBackToPreviousPage = ({ t }: { t: TFunction }) => { - const router = useRouter(); - const path = router.asPath.split("/"); - path.pop(); // Remove the last item (where we currently are) - path.shift(); // Removes first item e.g. if we were visitng "/teams/test/30mins" the array will new look like ["teams","test"] - const slug = path.join("/"); - return ( -
- -
- ); -}; - const useSlots = ({ eventTypeId, eventTypeSlug, @@ -423,12 +403,6 @@ const AvailabilityPage = ({ profile, eventType, ...restProps }: Props) => { {timezoneDropdown} - {!isEmbed && ( -
- -
- )} - {/* Temporarily disabled - booking?.startTime && rescheduleUid && (