Update web app with SMS and calls stuff
This commit is contained in:
parent
7677c50b0e
commit
eb0805a470
14 changed files with 274 additions and 39 deletions
|
@ -206,10 +206,12 @@ export const formatBytes = (bytes, decimals = 2) => {
|
|||
}
|
||||
|
||||
export const formatNumber = (n) => {
|
||||
if (n % 1000 === 0) {
|
||||
if (n === 0) {
|
||||
return n;
|
||||
} else if (n % 1000 === 0) {
|
||||
return `${n/1000}k`;
|
||||
}
|
||||
return n;
|
||||
return n.toLocaleString();
|
||||
}
|
||||
|
||||
export const formatPrice = (n) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue