Feat/hide unused features
This commit is contained in:
parent
8d5d0a666e
commit
41b86d4a6d
28 changed files with 3357 additions and 20314 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue