feat: create event type atom (#17142)

* feat: create event type atom

* fixup! feat: create event type atom

* fixup! fixup! feat: create event type atom

* docs: base doc for create event type atom
This commit is contained in:
Morgan authored and GitHub committed 2024-10-17 21:51:23 +05:30
1 parent 8b50f419e5
commit 497b0804d3
15 files changed
+360 -29

No files matched your search

@@ -62,7 +62,7 @@ export const TeamEventTypeForm = ({
{urlPrefix && urlPrefix.length >= 21 ? (
<div>
<TextField
label={`${t("url")}: ${urlPrefix}`}
label={isPlatform ? "Slug" : `${t("url")}: ${urlPrefix}`}
required
addOnLeading={
!isPlatform ? (
@@ -79,14 +79,14 @@ export const TeamEventTypeForm = ({
}}
/>
{isManagedEventType && (
{isManagedEventType && !isPlatform && (
<p className="mt-2 text-sm text-gray-600">{t("managed_event_url_clarification")}</p>
)}
</div>
) : (
<div>
<TextField
label={t("url")}
label={isPlatform ? "Slug" : t("url")}
required
addOnLeading={
!isPlatform ? (
@@ -105,7 +105,7 @@ export const TeamEventTypeForm = ({
form.setValue("slug", slugify(e?.target.value), { shouldTouch: true });
}}
/>
{isManagedEventType && (
{isManagedEventType && !isPlatform && (
<p className="mt-2 text-sm text-gray-600">{t("managed_event_url_clarification")}</p>
)}
</div>