From b7892b10ef36913c56d34c32568a26c8df90fe67 Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Fri, 21 Oct 2022 23:20:15 +0530 Subject: [PATCH] Add/Edit location dialog: "can't find the right video app? visit our app store" (#4990) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Nitesh Singh Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Matheus Benini Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com> Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Rafael Co-authored-by: Grace Nshokano Co-authored-by: MuriloAmarals Co-authored-by: Matheus Muniz Co-authored-by: JĂșlio Piubello da Silva Cabral Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: C000Ldude Co-authored-by: Klinger Matheus <50892465+KlingerMatheus@users.noreply.github.com> Co-authored-by: Eman --- apps/web/components/ui/LinkText.tsx | 7 +++++-- .../components/v2/eventtype/EditLocationDialog.tsx | 13 +++++++++++++ apps/web/public/static/locales/en/common.json | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/apps/web/components/ui/LinkText.tsx b/apps/web/components/ui/LinkText.tsx index d9d71e0cac..5deca4ca77 100644 --- a/apps/web/components/ui/LinkText.tsx +++ b/apps/web/components/ui/LinkText.tsx @@ -4,16 +4,19 @@ interface ILinkTextProps { href: string; children: React.ReactNode; classNameChildren?: string; + target?: string; } /** * This component had to be made in order to make i18n work with next/link * @see https://github.com/i18next/react-i18next/issues/1090#issuecomment-615426145 **/ export const LinkText = (props: ILinkTextProps) => { - const { href, children, classNameChildren, ...moreProps } = props; + const { target, href, children, classNameChildren, ...moreProps } = props; return ( - {children} + + {children} + ); }; diff --git a/apps/web/components/v2/eventtype/EditLocationDialog.tsx b/apps/web/components/v2/eventtype/EditLocationDialog.tsx index 0c878a8eaa..4e3c832c38 100644 --- a/apps/web/components/v2/eventtype/EditLocationDialog.tsx +++ b/apps/web/components/v2/eventtype/EditLocationDialog.tsx @@ -1,6 +1,7 @@ import { ErrorMessage } from "@hookform/error-message"; import { zodResolver } from "@hookform/resolvers/zod"; import { isValidPhoneNumber } from "libphonenumber-js"; +import { Trans } from "next-i18next"; import { useEffect } from "react"; import { Controller, useForm, useWatch } from "react-hook-form"; import { z } from "zod"; @@ -24,6 +25,7 @@ import { Select } from "@calcom/ui/v2/"; import { QueryCell } from "@lib/QueryCell"; +import { LinkText } from "@components/ui/LinkText"; import CheckboxField from "@components/ui/form/CheckboxField"; type BookingItem = inferQueryOutput<"viewer.bookings">["bookings"][number]; @@ -308,6 +310,17 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { }} /> {selectedLocation && LocationOptions} +
+

+ + Can't find the right video app? Visit our + + App Store + + . + +

+