feat: Make event duration a dynamic text variable (#15262)

* feat: Make event duration a dynamic text variable

* Update common.json

* final update

* update

* fix type error

* fix unit test

* refactor and update

* For now log the situation when duration isnt a number

---------

Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
Anik Dhabal BabuandHariom Balhara authored and GitHub committed 2024-08-05 09:07:46 +00:00
1 parent 099d830e7e
commit 461d5e0535
10 files changed
+59 -1

No files matched your search

@@ -70,6 +70,10 @@ const CustomEventTypeModalForm: FC<CustomEventTypeModalFormProps> = (props) => {
<p className="text-subtle ml-1 mr-5 w-32">{`{Event type title}`}</p>
<p className="text-emphasis">{t("event_name_info")}</p>
</div>
<div className="mb-2.5 flex font-normal">
<p className="text-subtle ml-1 mr-5 w-32">{`{Event duration}`}</p>
<p className="text-emphasis">{t("event_duration_info")}</p>
</div>
<div className="mb-2.5 flex font-normal">
<p className="text-subtle ml-1 mr-5 w-32">{`{Organiser}`}</p>
<p className="text-emphasis">{t("your_full_name")}</p>
@@ -74,6 +74,7 @@ export const EventAdvancedTab = ({ eventType, team }: Pick<EventTypeSetupProps,
eventName: formMethods.getValues("eventName"),
host: formMethods.getValues("users")[0]?.name || "Nameless",
bookingFields: bookingFields,
eventDuration: formMethods.getValues("length"),
t,
};