- updated zustand and react libraries;
- added 'put in draft' btn;
This commit is contained in:
@@ -9,7 +9,7 @@ import { useNavigate } from 'react-router-dom';
|
||||
import AuthenticationService from '../../service/authentication-service';
|
||||
|
||||
// store
|
||||
import { storeSet, useStore } from '../../store';
|
||||
import { storeSet, useStoreValue } from '../../store';
|
||||
|
||||
// components
|
||||
import FormField from '../../components/FormField';
|
||||
@@ -22,7 +22,7 @@ const APP_HUB_ID = process.env.REACT_APP_HUB_ID;
|
||||
|
||||
const LoginConfidi = () => {
|
||||
const navigate = useNavigate();
|
||||
const token = useStore().main.token();
|
||||
const token = useStoreValue('token');
|
||||
const [loading, setLoading] = useState(false);
|
||||
const errorMsgs = useRef(null);
|
||||
const {
|
||||
@@ -49,7 +49,7 @@ const LoginConfidi = () => {
|
||||
|
||||
const loginCallback = (data) => {
|
||||
if (data.status === 'SUCCESS') {
|
||||
storeSet.main.setAuthData({
|
||||
storeSet('setAuthData', {
|
||||
token: data.data.token,
|
||||
userData: data.data.user
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user