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

(nextjs) added eslint and import sorting

This commit is contained in:
Fedor Katurov 2022-01-19 12:30:04 +07:00
parent e5f8d5a551
commit 0838bf7ee6
330 changed files with 1576 additions and 896 deletions

View file

@ -1,9 +1,13 @@
import { INode } from '~/types';
import useSWR from 'swr';
import { ApiGetNodeRelatedResult } from '~/types/node';
import { API } from '~/constants/api';
import { useCallback } from 'react';
import useSWR from 'swr';
import { apiGetNodeRelated } from '~/api/node';
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), () =>