Feat/hide unused features

This commit is contained in:
Valentino 2022-02-09 09:03:44 +00:00
parent 8d5d0a666e
commit 41b86d4a6d
28 changed files with 3357 additions and 20314 deletions

View file

@ -1,10 +1,10 @@
import { useCallback } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { getAuth, signIn, signOut } from '../redux';
import { getAuthToken, signIn, signOut } from '../redux';
export function useAuth() {
const dispatch = useDispatch();
const auth = useSelector(getAuth);
const authToken = useSelector(getAuthToken);
const logIn = useCallback(
(params) => {
@ -18,7 +18,7 @@ export function useAuth() {
}, [dispatch]);
return {
auth,
authToken,
logIn,
logOut,
};