Introduce ComponentState (#4386)
* Proof of concept ComponentState * Migrate to createState and createFamilyState * Refactor * Fix * Fix tests * Fix lint * Fix tests * Re-enable coverage
This commit is contained in:
@ -5,8 +5,8 @@ import { isVerifyPendingState } from '@/auth/states/isVerifyPendingState';
|
||||
import { tokenPairState } from '../states/tokenPairState';
|
||||
|
||||
export const useIsLogged = (): boolean => {
|
||||
const [tokenPair] = useRecoilState(tokenPairState);
|
||||
const isVerifyPending = useRecoilValue(isVerifyPendingState);
|
||||
const [tokenPair] = useRecoilState(tokenPairState());
|
||||
const isVerifyPending = useRecoilValue(isVerifyPendingState());
|
||||
|
||||
return !!tokenPair && !isVerifyPending;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user