work on car code
This commit is contained in:
5
src/core/utils/formatCounter.js
Normal file
5
src/core/utils/formatCounter.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const formatCounter = (counter) => {
|
||||
const minutes = Math.floor(counter / 60).toString().padStart(2, '0');
|
||||
const seconds = (counter % 60).toString().padStart(2, '0');
|
||||
return `${minutes}:${seconds}`;
|
||||
};
|
||||
@@ -31,4 +31,7 @@ export const GET_OPERATOR_LIST = "/v3/api/fake-operator-list";
|
||||
export const EXPORT_OPERATOR_LIST = "https://rms.rmto.ir/v2/road_patrols/operator/cartable/report";
|
||||
export const GET_SUPERVISOR_LIST = "/v3/api/fake-supervisor-list";
|
||||
export const EXPORT_SUPERVISOR_LIST = "https://rms.rmto.ir/v2/road_patrols/supervisor/cartable/report";
|
||||
|
||||
////**** mohammad check here ****////
|
||||
export const GET_OTP_TOKEN = "https://rms.rmto.ir/v2/get_otp_token";
|
||||
export const VERIFY_OTP = "https://rms.rmto.ir/v2/verify_otp";
|
||||
|
||||
Reference in New Issue
Block a user