From 2eedf74eb73a5254b880d5176a74d894704ec46d Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Thu, 21 Jul 2022 17:05:13 +0100 Subject: [PATCH] Apply suggestions from code review (#3480) Co-authored-by: gitstart Co-authored-by: Peer Richelsen --- apps/web/components/availability/Schedule.tsx | 27 ++++++++++--------- apps/web/public/static/locales/en/common.json | 1 + apps/web/public/static/locales/fr/common.json | 1 + 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/apps/web/components/availability/Schedule.tsx b/apps/web/components/availability/Schedule.tsx index 22a60acb19..01df625fc6 100644 --- a/apps/web/components/availability/Schedule.tsx +++ b/apps/web/components/availability/Schedule.tsx @@ -8,7 +8,8 @@ import { GroupBase, Props } from "react-select"; import dayjs, { Dayjs, ConfigType } from "@calcom/dayjs"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import Button from "@calcom/ui/Button"; -import Dropdown, { DropdownMenuTrigger, DropdownMenuContent } from "@calcom/ui/Dropdown"; +import Dropdown, { DropdownMenuContent } from "@calcom/ui/Dropdown"; +import { Tooltip } from "@calcom/ui/Tooltip"; import { defaultDayRange } from "@lib/availability"; import { weekdayNames } from "@lib/core/i18n/weekday"; @@ -202,7 +203,7 @@ export const DayRanges = ({ const { setValue, watch } = useFormContext(); // XXX: Hack to make copying times work; `fields` is out of date until save. const watcher = watch(name); - + const { t } = useLocale(); const { fields, replace, append, remove } = useFieldArray({ name, }); @@ -242,16 +243,18 @@ export const DayRanges = ({ {index === 0 && (
-