diff --git a/pages/availability/index.tsx b/pages/availability/index.tsx index 7a7824db73..ff8cdd8a64 100644 --- a/pages/availability/index.tsx +++ b/pages/availability/index.tsx @@ -31,6 +31,12 @@ export default function Availability(props) { return
; } + function autoPopulateSlug() { + let t = titleRef.current.value; + t = t.replace(/\s+/g, '-').toLowerCase(); + slugRef.current.value = t; + } + function toggleAddModal() { setShowAddModal(!showAddModal); } @@ -237,7 +243,7 @@ export default function Availability(props) {