fix(admin): fix the admin app (#9233)
This commit is contained in:
12 files changed
+253
-63
No files matched your search
@@ -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