mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +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,6 +1,5 @@
|
|||
import { useCallback, useMemo } from 'react';
|
||||
|
||||
import { path } from 'ramda';
|
||||
import useSWR from 'swr';
|
||||
|
||||
import { apiAttachSocial, apiDropSocial, apiGetSocials, apiLoginWithSocial } from '~/api/auth';
|
||||
|
@ -10,6 +9,7 @@ import { useAuth } from '~/hooks/auth/useAuth';
|
|||
import { useModal } from '~/hooks/modal/useModal';
|
||||
import { OAuthProvider } from '~/types/auth';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
import { path } from '~/utils/ramda';
|
||||
|
||||
export const useOAuth = () => {
|
||||
const { isUser, setToken } = useAuth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue