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

(nextjs) fixed eslint warnings

This commit is contained in:
Fedor Katurov 2022-01-19 12:03:54 +07:00
parent c469722a86
commit e5f8d5a551
29 changed files with 56 additions and 59 deletions

View file

@ -3,8 +3,6 @@ import { ERRORS } from '~/constants/errors';
import { useCallback } from 'react';
import { FormikConfig, useFormik } from 'formik';
import { IUser } from '~/types/auth';
import { showToastSuccess } from '~/utils/toast';
import { getRandomPhrase } from '~/constants/phrases';
import { showErrorToast } from '~/utils/errors/showToast';
import { getValidationErrors } from '~/utils/errors/getValidationErrors';

View file

@ -1,9 +1,8 @@
import { useAuthStore } from '~/store/auth/useAuthStore';
import { useCallback } from 'react';
import { apiUserLogin } from '~/api/auth';
import { showErrorToast } from '~/utils/errors/showToast';
import { getRandomPhrase } from '~/constants/phrases';
import { showToastInfo, showToastSuccess } from '~/utils/toast';
import { showToastInfo } from '~/utils/toast';
export const useLoginLogoutRestore = () => {
const auth = useAuthStore();