Scheduling infrastructure for absolutely everyone.
added "add another calendar" to event-types detail in advanced (#4122)
Peer Richelsen31abf01724c2
diff --git a/apps/web/components/v2/eventtype/EventAdvancedTab.tsx b/apps/web/components/v2/eventtype/EventAdvancedTab.tsxindex e90877699c7..288b7cf5438 100644--- a/apps/web/components/v2/eventtype/EventAdvancedTab.tsx+++ b/apps/web/components/v2/eventtype/EventAdvancedTab.tsx@@ -1,5 +1,6 @@import autoAnimate from "@formkit/auto-animate";import { EventTypeCustomInput } from "@prisma/client/";+import Link from "next/link";import { EventTypeSetupInfered, FormValues } from "pages/v2/event-types/[type]";import { useEffect, useRef, useState } from "react";import { Controller, useFormContext } from "react-hook-form";@@ -72,7 +73,14 @@ export const EventAdvancedTab = ({ eventType, team }: Pick<EventTypeSetupInfered*/}{!!connectedCalendarsQuery.data?.connectedCalendars.length && !team && (<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"><Controllercontrol={formMethods.control}diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex 30e2ccd88b7..4093a75b6d8 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -241,6 +241,7 @@"when": "When","where": "Where","add_to_calendar": "Add to calendar",+ "add_another_calendar": "Add another calendar","other": "Other","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.",