updated the rider info and some csv changes as well updated the api.ts files

This commit is contained in:
2026-05-21 17:56:55 +05:30
parent 842077eaca
commit f2e48bdd28
4 changed files with 2051 additions and 16449 deletions

View File

@@ -3,6 +3,16 @@ import { OpenToast } from 'components/third-party/OpenToast';
import dayjs from 'dayjs';
const userid = localStorage.getItem('userid');
// ==============================|| getRiderPeriodicLogs ||============================== //
// Returns the rider's latest periodic log entry — battery, GPS, status, current
// order. Used by the Rider Info modal on the Dispatch page.
export const getRiderPeriodicLogs = async (userid) => {
const url = `${process.env.REACT_APP_URL}/utils/getriderperiodiclogs${userid ? `?userid=${userid}` : ''}`;
const response = await axios.get(url);
if (response.data && response.data.status) return response.data.data;
return null;
};
// ==============================|| fetchAppLocations||============================== //
export const fetchAppLocations = async () => {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff