Build fixes (#1929)

* Build fixes

* Fixes type error
This commit is contained in:
Omar López authored and GitHub committed 2022-02-21 18:45:35 +00:00
1 parent 7585e9b32e
commit 50c75da5e0
4 files changed
+95 -93

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
export const slugify = (str: string) => {
return str.replace(/[^a-zA-Z0-9-]/g, "-").toLowerCase();
};
export default slugify;
+2 -2
View File
@@ -1,7 +1,7 @@
import { z } from "zod";
import { LocationType } from "@lib/location";
import { slugify } from "@lib/slugify";
import { LocationType } from "@calcom/lib/location";
import { slugify } from "@calcom/lib/slugify";
export const eventTypeLocations = z.array(
z.object({ type: z.nativeEnum(LocationType), address: z.string().optional() })