Add/Edit location dialog: "can't find the right video app? visit our app store" (#4990)
Co-authored-by: Nitesh Singh <[email protected]> Co-authored-by: Matheus Benini Ferreira <[email protected]> Co-authored-by: gitstart <[email protected]> Co-authored-by: gitstart <[email protected]> Co-authored-by: Rafael Toledo <[email protected]> Co-authored-by: Matheus Benini <[email protected]> Co-authored-by: Murilo Amaral <[email protected]> Co-authored-by: Rubens Rafael <[email protected]> Co-authored-by: Thiago Nascimbeni <[email protected]> Co-authored-by: Rafael <[email protected]> Co-authored-by: Grace Nshokano <[email protected]> Co-authored-by: MuriloAmarals <[email protected]> Co-authored-by: Matheus Muniz <[email protected]> Co-authored-by: Júlio Piubello da Silva Cabral <[email protected]> Co-authored-by: Matheus Muniz <[email protected]> Co-authored-by: C000Ldude <[email protected]> Co-authored-by: Klinger Matheus <[email protected]> Co-authored-by: Eman <[email protected]>
This commit is contained in:
3 files changed
+19
-2
No files matched your search
@@ -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 (
|
||||
<Link href={href || ""} {...moreProps}>
|
||||
<a className={classNameChildren}>{children}</a>
|
||||
<a target={target || ""} className={classNameChildren}>
|
||||
{children}
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
@@ -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}
|
||||
<div className="mt-5">
|
||||
<p className="text-sm text-gray-400">
|
||||
<Trans i18nKey="cant_find_the_right_video_app_visit_our_app_store">
|
||||
Can't find the right video app? Visit our
|
||||
<LinkText href="/apps/categories/video" classNameChildren="text-blue-400" target="_blank">
|
||||
App Store
|
||||
</LinkText>
|
||||
.
|
||||
</Trans>
|
||||
</p>
|
||||
</div>
|
||||
<div className="mt-4 flex justify-end space-x-2">
|
||||
<Button
|
||||
onClick={() => {
|
||||
|
||||
@@ -1303,6 +1303,7 @@
|
||||
"how_long_after": "How long after event ends?",
|
||||
"no_available_slots": "No Available slots",
|
||||
"time_available": "Time available",
|
||||
"cant_find_the_right_video_app_visit_our_app_store": "Can't find the right video app? Visit our <1>App Store</1>.",
|
||||
"install_new_calendar_app": "Install new calendar app",
|
||||
"make_phone_number_required": "Make phone number required for booking event",
|
||||
"dont_have_permission": "You don't have permission to access this resource.",
|
||||
|
||||
Reference in new issue
Block a user