added "add another calendar" to event-types detail in advanced (#4122)
This commit is contained in:
1 parent
11b52c839c
commit
31abf01724
2 files changed
+10
-1
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
import autoAnimate from "@formkit/auto-animate";
|
import autoAnimate from "@formkit/auto-animate";
|
||||||
import { EventTypeCustomInput } from "@prisma/client/";
|
import { EventTypeCustomInput } from "@prisma/client/";
|
||||||
|
import Link from "next/link";
|
||||||
import { EventTypeSetupInfered, FormValues } from "pages/v2/event-types/[type]";
|
import { EventTypeSetupInfered, FormValues } from "pages/v2/event-types/[type]";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { Controller, useFormContext } from "react-hook-form";
|
import { Controller, useFormContext } from "react-hook-form";
|
||||||
@@ -72,7 +73,14 @@ export const EventAdvancedTab = ({ eventType, team }: Pick<EventTypeSetupInfered
|
|||||||
*/}
|
*/}
|
||||||
{!!connectedCalendarsQuery.data?.connectedCalendars.length && !team && (
|
{!!connectedCalendarsQuery.data?.connectedCalendars.length && !team && (
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<Label>{t("add_to_calendar")}</Label>
|
<div className="flex justify-between">
|
||||||
|
<Label>{t("add_to_calendar")}</Label>
|
||||||
|
<Link href="/apps/categories/calendar">
|
||||||
|
<a target="_blank" className="text-sm text-gray-600 hover:text-gray-900">
|
||||||
|
{t("add_another_calendar")}
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<Controller
|
<Controller
|
||||||
control={formMethods.control}
|
control={formMethods.control}
|
||||||
|
|||||||
@@ -241,6 +241,7 @@
|
|||||||
"when": "When",
|
"when": "When",
|
||||||
"where": "Where",
|
"where": "Where",
|
||||||
"add_to_calendar": "Add to calendar",
|
"add_to_calendar": "Add to calendar",
|
||||||
|
"add_another_calendar": "Add another calendar",
|
||||||
"other": "Other",
|
"other": "Other",
|
||||||
"emailed_you_and_attendees": "We emailed you and the other attendees a calendar invitation with all the details.",
|
"emailed_you_and_attendees": "We emailed you and the other attendees a calendar invitation with all the details.",
|
||||||
"emailed_you_and_attendees_recurring": "We emailed you and the other attendees a calendar invitation for the first of these recurring events.",
|
"emailed_you_and_attendees_recurring": "We emailed you and the other attendees a calendar invitation for the first of these recurring events.",
|
||||||
|
|||||||
Reference in new issue
Block a user