Refactor relay form

This commit is contained in:
Jon Staab
2026-02-27 13:11:42 -08:00
parent 6017a65cf4
commit 5d102ad215
6 changed files with 145 additions and 170 deletions
+1 -10
View File
@@ -1,6 +1,7 @@
import { Show, createSignal } from "solid-js"
import { useNavigate } from "@solidjs/router"
import { createTenantRelay } from "../../lib/api"
import { slugify } from "../../lib/slugify"
const PLANS = [
{ id: "free", label: "Free", price: 0, members: "Up to 10", blossom: false, livekit: false },
@@ -10,16 +11,6 @@ const PLANS = [
type PlanId = (typeof PLANS)[number]["id"]
function slugify(s: string) {
return s
.toLowerCase()
.trim()
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-+|-+$/g, "")
}
export default function RelayNew() {
const navigate = useNavigate()
const [name, setName] = createSignal("")