mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
(nextjs) added eslint and import sorting
This commit is contained in:
parent
e5f8d5a551
commit
0838bf7ee6
330 changed files with 1576 additions and 896 deletions
|
@ -1,7 +1,9 @@
|
|||
import { ERROR_LITERAL } from '~/constants/errors';
|
||||
import { has } from 'ramda';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { has } from 'ramda';
|
||||
|
||||
import { ERROR_LITERAL } from '~/constants/errors';
|
||||
|
||||
export const useTranslatedError = (error: string | undefined) => {
|
||||
return useMemo(() => {
|
||||
if (!error) {
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
import { UploadSubject, UploadTarget } from '~/constants/uploads';
|
||||
import { IFile } from '~/types';
|
||||
import { useCallback } from 'react';
|
||||
import { apiUploadFile } from '~/api/uploads';
|
||||
import { keys } from 'ramda';
|
||||
|
||||
import { useLocalObservable } from 'mobx-react-lite';
|
||||
import { UploaderStore } from '~/store/uploader/UploaderStore';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
import { keys } from 'ramda';
|
||||
import uuid from 'uuid4';
|
||||
|
||||
import { apiUploadFile } from '~/api/uploads';
|
||||
import { UploadSubject, UploadTarget } from '~/constants/uploads';
|
||||
import { UploaderStore } from '~/store/uploader/UploaderStore';
|
||||
import { IFile } from '~/types';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
|
||||
|
||||
export const useUploader = (
|
||||
subject: UploadSubject,
|
||||
target: UploadTarget,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue