Handle adding work for homie
This commit is contained in:
@@ -3,6 +3,11 @@ const formatMoney = (amount) => {
|
||||
return `${formatted} KM`;
|
||||
}
|
||||
|
||||
const formatTime = (amount) => {
|
||||
const formatted = Number.parseInt(amount);
|
||||
return `${formatted} hrs`;
|
||||
}
|
||||
|
||||
const timestampToDate = (timestamp) => {
|
||||
const dateOptions = { year: 'numeric', month: 'long', day: 'numeric' };
|
||||
|
||||
@@ -12,5 +17,6 @@ const timestampToDate = (timestamp) => {
|
||||
|
||||
export {
|
||||
formatMoney,
|
||||
formatTime,
|
||||
timestampToDate
|
||||
}
|
||||
Reference in New Issue
Block a user