added "add another calendar" to event-types detail in advanced (#4122)

This commit is contained in:
Peer Richelsen 2022-09-02 13:42:39 +02:00 committed by GitHub
parent 11b52c839c
commit 31abf01724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -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">
<Controller
control={formMethods.control}

View File

@ -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.",