mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
optimized imports
This commit is contained in:
parent
68bab520df
commit
77d59625d1
26 changed files with 6 additions and 49 deletions
|
@ -1,4 +1,4 @@
|
|||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
export const useWindowSize = () => {
|
||||
const [size, setSize] = useState({ innerWidth: 0, innerHeight: 0 });
|
||||
|
|
|
@ -5,7 +5,6 @@ import { useFlowLoader } from '~/hooks/flow/useFlowLoader';
|
|||
import { useFlowSetCellView } from '~/hooks/flow/useFlowSetCellView';
|
||||
import { useGetLabStats } from '~/hooks/lab/useGetLabStats';
|
||||
import { useFlowStore } from '~/store/flow/useFlowStore';
|
||||
import { GetNodeDiffResult } from '~/types/node';
|
||||
|
||||
export const useFlow = () => {
|
||||
const { loadMore, isSyncing } = useFlowLoader();
|
||||
|
|
|
@ -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 })
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
import { createElement, FC, useCallback, useMemo } from 'react';
|
||||
|
||||
import {
|
||||
INodeComponentProps,
|
||||
LAB_PREVIEW_LAYOUT,
|
||||
NODE_COMPONENTS,
|
||||
NODE_HEADS,
|
||||
NODE_INLINES,
|
||||
} from '~/constants/node';
|
||||
import { INodeComponentProps, LAB_PREVIEW_LAYOUT, NODE_COMPONENTS, NODE_HEADS, NODE_INLINES } from '~/constants/node';
|
||||
import { INode } from '~/types';
|
||||
import { isNil, prop } from '~/utils/ramda';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue