Users Phone Number Option (#2669)
* Users Phone Number Option * Implemented improvments * Add validation to form Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <zomars@me.com>
This commit is contained in:
7 files changed
+72
-6
No files matched your search
@@ -1,6 +1,7 @@
|
||||
export enum DefaultLocationType {
|
||||
InPerson = "inPerson",
|
||||
Phone = "phone",
|
||||
UserPhone = "userPhone",
|
||||
Link = "link",
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@ function translateLocations(locations: OptionTypeBase[], t: TFunction) {
|
||||
const defaultLocations: OptionTypeBase[] = [
|
||||
{ value: LocationType.InPerson, label: "in_person_meeting" },
|
||||
{ value: LocationType.Link, label: "link_meeting" },
|
||||
{ value: LocationType.Phone, label: "phone_call" },
|
||||
{ value: LocationType.Phone, label: "attendee_phone_number" },
|
||||
{ value: LocationType.UserPhone, label: "host_phone_number" },
|
||||
];
|
||||
|
||||
export function getLocationOptions(integrations: AppMeta, t: TFunction) {
|
||||
|
||||
@@ -9,6 +9,7 @@ export const eventTypeLocations = z.array(
|
||||
type: z.nativeEnum(LocationType),
|
||||
address: z.string().optional(),
|
||||
link: z.string().url().optional(),
|
||||
hostPhoneNumber: z.string().optional(),
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user