1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-01 23:56: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,7 +1,8 @@
import { useCallback } from 'react';
import { IFile } from '~/types';
import { useShowModal } from '~/hooks/modal/useShowModal';
import { Dialog } from '~/constants/modal';
import { useShowModal } from '~/hooks/modal/useShowModal';
import { IFile } from '~/types';
export const useImageModal = () => {
const showModal = useShowModal(Dialog.Photoswipe);

View file

@ -1,8 +1,10 @@
import { useCallback } from 'react';
import { CONFIG } from '~/utils/config';
import { useRouter } from 'next/router';
import { useHistory } from 'react-router';
import { CONFIG } from '~/utils/config';
export const useNavigation = () => {
const nextRouter = useRouter();
const craHistory = useHistory();