Make tenant creation implicit
This commit is contained in:
@@ -76,7 +76,6 @@ export type Invoice = {
|
||||
export type Identity = {
|
||||
pubkey: string
|
||||
is_admin: boolean
|
||||
is_tenant: boolean
|
||||
}
|
||||
|
||||
export type CreateRelayInput = {
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user