1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00

optimized imports

This commit is contained in:
Fedor Katurov 2022-03-23 14:26:14 +07:00
parent 68bab520df
commit 77d59625d1
26 changed files with 6 additions and 49 deletions

View file

@ -7,8 +7,6 @@ import { API } from '~/constants/api';
import { INode } from '~/types';
import { ApiGetNodeRelatedResult } from '~/types/node';
export const useGetNodeRelated = (id?: INode['id']) => {
const { data, isValidating, mutate } = useSWR<ApiGetNodeRelatedResult>(API.NODE.RELATED(id), () =>
apiGetNodeRelated({ id })