diff --git a/apps/web/pages/event-types/index.tsx b/apps/web/pages/event-types/index.tsx index 69846ff3be..8b1b077a7b 100644 --- a/apps/web/pages/event-types/index.tsx +++ b/apps/web/pages/event-types/index.tsx @@ -78,7 +78,10 @@ const Item = ({ type, group, readOnly }: any) => { return ( ( - - {types.length > 1 && ( + + {types.length > 1 && !type.$disabled && ( <> 1 && ( ({ @@ -247,28 +252,38 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL }))} /> )} - - - - - + + + + + + - - { - showToast(t("link_copied"), "success"); - navigator.clipboard.writeText( - `${process.env.NEXT_PUBLIC_WEBSITE_URL}/${group.profile.slug}/${type.slug}` - ); - }} - className="btn-icon"> - - - + + { + showToast(t("link_copied"), "success"); + navigator.clipboard.writeText( + `${process.env.NEXT_PUBLIC_WEBSITE_URL}/${group.profile.slug}/${type.slug}` + ); + }} + className={classNames("btn-icon", type.$disabled && " opacity-30")}> + + + + {" "} {t("edit")} @@ -294,7 +312,10 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL type="button" color="minimal" size="sm" - className="w-full rounded-none" + className={classNames( + "w-full rounded-none", + type.$disabled && " pointer-events-none cursor-not-allowed opacity-30" + )} data-testid={"event-type-duplicate-" + type.id} StartIcon={DuplicateIcon} onClick={() => openModal(group, type)}> @@ -304,7 +325,10 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL