From 2a917e8330fa7b82534c5db8672dbec5747ad041 Mon Sep 17 00:00:00 2001 From: CarinaWolli Date: Fri, 12 Jan 2024 14:39:54 -0500 Subject: [PATCH] improve design --- .../my-account/out-of-office/index.tsx | 145 +++++++++--------- 1 file changed, 71 insertions(+), 74 deletions(-) diff --git a/apps/web/pages/settings/my-account/out-of-office/index.tsx b/apps/web/pages/settings/my-account/out-of-office/index.tsx index 5819b06d99..7a7eed2360 100644 --- a/apps/web/pages/settings/my-account/out-of-office/index.tsx +++ b/apps/web/pages/settings/my-account/out-of-office/index.tsx @@ -3,6 +3,7 @@ import React, { useState } from "react"; import { Controller, useForm, useFormState } from "react-hook-form"; import dayjs from "@calcom/dayjs"; +import SectionBottomActions from "@calcom/features/settings/SectionBottomActions"; import { getLayout } from "@calcom/features/settings/layouts/SettingsLayout"; import { ShellMain } from "@calcom/features/shell/Shell"; import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan"; @@ -83,86 +84,81 @@ const OutOfOfficeSection = () => { setValue("toTeamUserId", null); setSelectedMember(null); })}> -
+
{/* Add startDate and end date inputs */} -
- {/* Add toggle to enable/disable redirect */} -
- { - setProfileRedirect(state); - }} - label={hasTeamPlan ? t("redirect_team_enabled") : t("redirect_team_disabled")} - /> - {!hasTeamPlan && ( -
- -
- )} -
-
- {profileRedirect && ( -
-

{t("team_member")}

- { + if (selectedOption?.value) { + setSelectedMember(selectedOption); + setValue("toTeamUserId", selectedOption?.value); + } + }} />
-
- -
- + )} +
+

{t("time_range")}

+ ( + { + setValue("dateRange", { + startDate, + endDate, + }); + }} + /> + )} + />
- -
+ + + ); @@ -250,6 +246,7 @@ const OutOfOfficePage = () => { + );