Make tenant creation implicit

This commit is contained in:
Jon Staab
2026-03-27 11:16:07 -07:00
parent 6415bcd7b7
commit 72b7a8db45
9 changed files with 39 additions and 79 deletions
-1
View File
@@ -76,7 +76,6 @@ export type Invoice = {
export type Identity = {
pubkey: string
is_admin: boolean
is_tenant: boolean
}
export type CreateRelayInput = {
+1 -6
View File
@@ -26,6 +26,7 @@ import {
type CreateRelayInput,
type Relay,
type Tenant,
type Identity,
type UpdateRelayInput,
} from "./api"
@@ -141,12 +142,6 @@ export function primeProfiles(pubkeys: string[]) {
}
}
type Identity = {
pubkey: string
is_admin: boolean
is_tenant: boolean
}
export const useTenant = () => createResource(() => getTenant(account()!.pubkey))
export const useTenantRelays = () => createResource(() => listTenantRelays(account()!.pubkey))