Add hooks

This commit is contained in:
Jon Staab
2026-03-26 14:52:52 -07:00
parent c9c551ed4f
commit a068b6471a
14 changed files with 237 additions and 42 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { Show, createSignal } from "solid-js"
import { useNavigate } from "@solidjs/router"
import { createTenantRelay } from "../../lib/api"
import { slugify } from "../../lib/slugify"
import { createRelayForActiveTenant } from "../../lib/hooks"
const PLANS = [
{ id: "free", label: "Free", price: 0, members: "Up to 10", blossom: false, livekit: false },
@@ -34,7 +34,7 @@ export default function RelayNew() {
setSubmitting(true)
try {
const relay = await createTenantRelay({
const relay = await createRelayForActiveTenant({
subdomain: slugify(subdomain()),
plan: plan(),
info_name: name().trim(),