mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(admin): fix the admin app (#9233)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { useMutateQueryResource } from '@affine/core/components/hooks/use-mutation';
|
||||
import { useQuery } from '@affine/core/components/hooks/use-query';
|
||||
import type { GetCurrentUserFeaturesQuery } from '@affine/graphql';
|
||||
import {
|
||||
adminServerConfigQuery,
|
||||
@@ -7,6 +5,9 @@ import {
|
||||
getCurrentUserFeaturesQuery,
|
||||
} from '@affine/graphql';
|
||||
|
||||
import { useMutateQueryResource } from '../use-mutation';
|
||||
import { useQuery } from '../use-query';
|
||||
|
||||
export const useServerConfig = () => {
|
||||
const { data } = useQuery({
|
||||
query: adminServerConfigQuery,
|
||||
|
||||
Reference in New Issue
Block a user