Handle adding work for homie

This commit is contained in:
Bilal
2020-09-19 04:46:01 +03:00
parent 533ef368cf
commit 6e0df8e7b7
9 changed files with 288 additions and 69 deletions

View File

@@ -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
}