add freeze subscription
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user