fix(admin): fix the admin app (#9233)

This commit is contained in:
EYHN
2024-12-23 03:06:31 +00:00
parent ec5bbb442f
commit cddef4c2f6
12 changed files with 253 additions and 63 deletions

View File

@@ -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,