updates on the design and added the riders route page

This commit is contained in:
2026-06-01 15:16:45 +05:30
parent 73b82877b8
commit e662154916
6 changed files with 562 additions and 135 deletions

View File

@@ -37,7 +37,7 @@ const Login = () => {
useEffect(() => {
if (localStorage.getItem('firstname')) {
navigate('/nearle/orders');
navigate('/nearle/dispatch');
}
}, []);
@@ -97,7 +97,7 @@ const Login = () => {
localStorage.setItem('userid', userinfo.userid);
localStorage.setItem('userfcmtoken', userinfo.userfcmtoken);
fetchAppLocations(userinfo.userid);
navigate('/nearle/orders');
navigate('/nearle/dispatch');
} else {
OpenToast(res.data.message, 'error', 3000);
}
@@ -119,7 +119,7 @@ const Login = () => {
localStorage.setItem('userfcmtoken', userinfo.userfcmtoken);
closeGlobalToast(); // to close the pin snackbar
navigate('/nearle/orders');
navigate('/nearle/dispatch');
};
const opentoast = (message) => {