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:
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,
|
||||
};
|
||||
|
||||
|
||||
@@ -233,6 +233,7 @@ export default function Success(props: PageProps) {
|
||||
host: props.profile.name || "Nameless",
|
||||
location: location,
|
||||
bookingFields: bookingInfo.responses,
|
||||
eventDuration: eventType.length,
|
||||
t,
|
||||
};
|
||||
|
||||
|
||||
@@ -1444,6 +1444,7 @@
|
||||
"add_dynamic_variables": "Add dynamic text variables",
|
||||
"event_name_info": "The event type name",
|
||||
"event_date_info": "The event date",
|
||||
"event_duration_info": "The event duration",
|
||||
"event_time_info": "The event start time",
|
||||
"event_type_not_found": "EventType not Found",
|
||||
"location_variable": "Location",
|
||||
|
||||
Reference in new issue
Block a user