aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/formatter.js
diff options
context:
space:
mode:
authorK-J-Dod24 <kieran.dodson@complexus.uk>2023-05-05 14:30:21 +0100
committerK-J-Dod24 <kieran.dodson@complexus.uk>2023-05-05 14:30:21 +0100
commit024e3a7633feec4e55da8b41b9f67d3155a0b991 (patch)
tree49c5540bdb7b66e6fc969d9a248d1f92a4070578 /modern/src/common/util/formatter.js
parente16f7353e850f69b29f285c80e1a0f200e5992be (diff)
downloadtrackermap-web-024e3a7633feec4e55da8b41b9f67d3155a0b991.tar.gz
trackermap-web-024e3a7633feec4e55da8b41b9f67d3155a0b991.tar.bz2
trackermap-web-024e3a7633feec4e55da8b41b9f67d3155a0b991.zip
language and position attributes io32/115
Diffstat (limited to 'modern/src/common/util/formatter.js')
-rw-r--r--modern/src/common/util/formatter.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index 56c02547..7f08ddcb 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -17,6 +17,8 @@ export const formatNumber = (value, precision = 1) => Number(value.toFixed(preci
export const formatPercentage = (value) => `${value}%`;
+export const formatCelsius = (value) => `${value}°C`;
+
export const formatTime = (value, format, hours12) => {
if (value) {
const m = moment(value);