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:
parent
68bab520df
commit
77d59625d1
26 changed files with 6 additions and 49 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue