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

removed redux completely

This commit is contained in:
Fedor Katurov 2022-01-09 19:03:01 +07:00
parent 26e6d8d41b
commit a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions

View file

@ -1,9 +1,9 @@
import useSWR from 'swr';
import { API } from '~/constants/api';
import { apiAuthGetUserProfile } from '~/redux/auth/api';
import { EMPTY_USER } from '~/redux/auth/constants';
import { apiAuthGetUserProfile } from '~/api/auth';
import { EMPTY_USER } from '~/constants/auth';
import { useCallback } from 'react';
import { IUser } from '~/redux/auth/types';
import { IUser } from '~/types/auth';
const getKey = (username?: string): string | null => {
return username ? `${API.USER.PROFILE}/${username}` : null;