From 0ee81d0739cab4138e4db1daa46a4aacf5b99d4d Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:40:35 -0400 Subject: [PATCH] fix: remove away view (#14672) * remove away view * remove yellow away dot * remove Away from Booker --------- Co-authored-by: CarinaWolli --- .../modules/users/views/users-public-view.tsx | 73 ++++++++----------- packages/features/bookings/Booker/Booker.tsx | 4 +- packages/features/shell/Shell.tsx | 1 - 3 files changed, 33 insertions(+), 45 deletions(-) diff --git a/apps/web/modules/users/views/users-public-view.tsx b/apps/web/modules/users/views/users-public-view.tsx index beb6abe00c..acc329eb25 100644 --- a/apps/web/modules/users/views/users-public-view.tsx +++ b/apps/web/modules/users/views/users-public-view.tsx @@ -98,13 +98,13 @@ export function UserPage(props: InferGetServerSidePropsType )} {isOrg && ( )} @@ -121,47 +121,38 @@ export function UserPage(props: InferGetServerSidePropsType - {user.away ? ( -
-
-

😴{` ${t("user_away")}`}

-

{t("user_away_description") as string}

+ {eventTypes.map((type) => ( +
+ + {/* Don't prefetch till the time we drop the amount of javascript in [user][type] page which is impacting score for [user] page */} +
+ { + sdkActionManager?.fire("eventTypeSelected", { + eventType: type, + }); + }} + data-testid="event-type-link"> +
+

{type.title}

+
+ +
- ) : ( - eventTypes.map((type) => ( -
- - {/* Don't prefetch till the time we drop the amount of javascript in [user][type] page which is impacting score for [user] page */} -
- { - sdkActionManager?.fire("eventTypeSelected", { - eventType: type, - }); - }} - data-testid="event-type-link"> -
-

{type.title}

-
- - -
-
- )) - )} + ))}
{isEventListEmpty && } diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index 98b600b72a..f8378fad9e 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -24,7 +24,7 @@ import { LargeCalendar } from "./components/LargeCalendar"; import { OverlayCalendar } from "./components/OverlayCalendar/OverlayCalendar"; import { RedirectToInstantMeetingModal } from "./components/RedirectToInstantMeetingModal"; import { BookerSection } from "./components/Section"; -import { Away, NotFound } from "./components/Unavailable"; +import { NotFound } from "./components/Unavailable"; import { fadeInLeft, getBookerSizeClassNames, useBookerResizeAnimation } from "./config"; import { useBookerStore } from "./store"; import type { BookerProps, WrappedBookerProps } from "./types"; @@ -466,8 +466,6 @@ const BookerComponent = ({ }; export const Booker = (props: BookerProps & WrappedBookerProps) => { - if (props.isAway) return ; - return ( diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx index 83bfa1558a..3c660d2015 100644 --- a/packages/features/shell/Shell.tsx +++ b/packages/features/shell/Shell.tsx @@ -457,7 +457,6 @@ function UserDropdown({ small }: UserDropdownProps) {