1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +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,10 @@
import { useFlowLayout } from '~/hooks/flow/useFlowLayout';
import { useMemo } from 'react';
import { useFlowLayout } from '~/hooks/flow/useFlowLayout';
import { useFlowLoader } from '~/hooks/flow/useFlowLoader';
import { useFlowStore } from '~/store/flow/useFlowStore';
import { useFlowSetCellView } from '~/hooks/flow/useFlowSetCellView';
import { useGetLabStats } from '~/hooks/lab/useGetLabStats';
import { useFlowStore } from '~/store/flow/useFlowStore';
export const useFlow = () => {
const { loadMore, isSyncing } = useFlowLoader();

View file

@ -1,4 +1,5 @@
import { useCallback } from 'react';
import { FlowDisplay, INode } from '~/types';
export const useFlowCellControls = (

View file

@ -1,6 +1,7 @@
import { useCallback } from 'react';
import { usePersistedState } from '~/hooks/data/usePersistedState';
import { experimentalFeatures } from '~/constants/features';
import { usePersistedState } from '~/hooks/data/usePersistedState';
enum Layout {
Fluid = 'fluid',

View file

@ -1,8 +1,10 @@
import { useCallback, useState } from 'react';
import { getNodeDiff } from '~/api/node';
import { uniq } from 'ramda';
import { useFlowStore } from '~/store/flow/useFlowStore';
import { runInAction } from 'mobx';
import { uniq } from 'ramda';
import { getNodeDiff } from '~/api/node';
import { useFlowStore } from '~/store/flow/useFlowStore';
import { showErrorToast } from '~/utils/errors/showToast';
export const useFlowLoader = () => {

View file

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