add freeze subscription

This commit is contained in:
2026-01-18 12:34:19 -03:00
parent 3f0f7ec1e1
commit ae348377a5
10 changed files with 102 additions and 40 deletions

View File

@@ -24,7 +24,9 @@ export type WorkspaceContextProps = {
address: Address | null
}
export const workspaceContext = createContext<WorkspaceContextProps>()
export const workspaceContext = createContext<
WorkspaceContextProps & { blocked: boolean }
>()
export const workspaceMiddleware = async (
{ params, request, context }: LoaderFunctionArgs,
@@ -63,7 +65,8 @@ export const workspaceMiddleware = async (
activeWorkspace,
workspaces,
subscription: org?.['subscription'] || null,
address: org?.['address'] || null
address: org?.['address'] || null,
blocked: 'subscription_freeze' in org
})
return await next()