1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

moved flow files

This commit is contained in:
Fedor Katurov 2022-01-04 19:37:46 +07:00
parent a068f56abf
commit b1e8bddbaf
4 changed files with 5 additions and 5 deletions

View file

@ -1,8 +1,8 @@
import { api, cleanResult, configWithToken } from '~/utils/api'; import { api, cleanResult, configWithToken } from '~/utils/api';
import { INode, IResultWithStatus } from '../types'; import { INode, IResultWithStatus } from 'src/redux/types';
import { API } from '~/constants/api'; import { API } from '~/constants/api';
import { PostCellViewRequest, PostCellViewResult } from '~/types/node'; import { PostCellViewRequest, PostCellViewResult } from '~/types/node';
import { GetSearchResultsRequest, GetSearchResultsResult } from '~/redux/flow/types'; import { GetSearchResultsRequest, GetSearchResultsResult } from '~/types/flow';
export const postNode = ({ export const postNode = ({
access, access,

View file

@ -2,7 +2,7 @@ import { useFlowStore } from '~/store/flow/useFlowStore';
import { useCallback } from 'react'; import { useCallback } from 'react';
import { FlowDisplay } from '~/redux/types'; import { FlowDisplay } from '~/redux/types';
import { showErrorToast } from '~/utils/errors/showToast'; import { showErrorToast } from '~/utils/errors/showToast';
import { postCellView } from '~/redux/flow/api'; import { postCellView } from '~/api/flow';
export const useFlowSetCellView = () => { export const useFlowSetCellView = () => {
const { updateNode } = useFlowStore(); const { updateNode } = useFlowStore();

View file

@ -1,10 +1,10 @@
import { useCallback, useEffect, useState } from 'react'; import { useCallback, useEffect, useState } from 'react';
import useSWRInfinite from 'swr/infinite'; import useSWRInfinite from 'swr/infinite';
import { flatten } from 'ramda'; import { flatten } from 'ramda';
import { getSearchResults } from '~/redux/flow/api'; import { getSearchResults } from '~/api/flow';
import { KeyLoader } from 'swr'; import { KeyLoader } from 'swr';
import { INode } from '~/redux/types'; import { INode } from '~/redux/types';
import { GetSearchResultsRequest } from '~/redux/flow/types'; import { GetSearchResultsRequest } from '~/types/flow';
const RESULTS_COUNT = 20; const RESULTS_COUNT = 20;