mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed ramda imports to reduce bundle size
This commit is contained in:
parent
a497912049
commit
097b091abd
47 changed files with 208 additions and 91 deletions
|
@ -1,8 +1,7 @@
|
|||
import { useMemo } from 'react';
|
||||
|
||||
import { has } from 'ramda';
|
||||
|
||||
import { ERROR_LITERAL } from '~/constants/errors';
|
||||
import { has } from '~/utils/ramda';
|
||||
|
||||
export const useTranslatedError = (error: string | undefined) => {
|
||||
return useMemo(() => {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { useCallback } from 'react';
|
||||
|
||||
import { useLocalObservable } from 'mobx-react-lite';
|
||||
import { keys } from 'ramda';
|
||||
import uuid from 'uuid4';
|
||||
|
||||
import { apiUploadFile } from '~/api/uploads';
|
||||
|
@ -9,7 +8,7 @@ import { UploadSubject, UploadTarget } from '~/constants/uploads';
|
|||
import { UploaderStore } from '~/store/uploader/UploaderStore';
|
||||
import { IFile } from '~/types';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
|
||||
import { keys } from '~/utils/ramda';
|
||||
|
||||
export const useUploader = (
|
||||
subject: UploadSubject,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue