mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
fix(admin): organize admin panel (#7840)
This commit is contained in:
@@ -35,7 +35,7 @@ export function useMutation<Mutation extends GraphQLQuery, K extends Key = Key>(
|
||||
config?: Omit<
|
||||
SWRMutationConfiguration<
|
||||
QueryResponse<Mutation>,
|
||||
GraphQLError | GraphQLError[],
|
||||
GraphQLError,
|
||||
K,
|
||||
QueryVariables<Mutation>
|
||||
>,
|
||||
@@ -43,7 +43,7 @@ export function useMutation<Mutation extends GraphQLQuery, K extends Key = Key>(
|
||||
>
|
||||
): SWRMutationResponse<
|
||||
QueryResponse<Mutation>,
|
||||
GraphQLError | GraphQLError[],
|
||||
GraphQLError,
|
||||
K,
|
||||
QueryVariables<Mutation>
|
||||
>;
|
||||
|
||||
@@ -32,16 +32,12 @@ import useSWRInfinite from 'swr/infinite';
|
||||
type useQueryFn = <Query extends GraphQLQuery>(
|
||||
options?: QueryOptions<Query>,
|
||||
config?: Omit<
|
||||
SWRConfiguration<
|
||||
QueryResponse<Query>,
|
||||
GraphQLError | GraphQLError[],
|
||||
typeof fetcher<Query>
|
||||
>,
|
||||
SWRConfiguration<QueryResponse<Query>, GraphQLError, typeof fetcher<Query>>,
|
||||
'fetcher'
|
||||
>
|
||||
) => SWRResponse<
|
||||
QueryResponse<Query>,
|
||||
GraphQLError | GraphQLError[],
|
||||
GraphQLError,
|
||||
{
|
||||
suspense: true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user