aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/View
diff options
context:
space:
mode:
authorJoris2016-04-05 23:52:13 +0200
committerJoris2016-04-05 23:52:13 +0200
commitfe50c4042848681833d15fab27466d1d2d4bda45 (patch)
tree9a1eda4adb22c0d84815e20e8e021968815d7c50 /src/client/elm/LoggedIn/View
parent466f77394885cb74d01451c4733cafc9b61f4bba (diff)
downloadbudget-fe50c4042848681833d15fab27466d1d2d4bda45.tar.gz
budget-fe50c4042848681833d15fab27466d1d2d4bda45.tar.bz2
budget-fe50c4042848681833d15fab27466d1d2d4bda45.zip
Ameliore design in income page and stat page
Diffstat (limited to 'src/client/elm/LoggedIn/View')
-rw-r--r--src/client/elm/LoggedIn/View/Format.elm (renamed from src/client/elm/LoggedIn/View/Price.elm)8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/elm/LoggedIn/View/Price.elm b/src/client/elm/LoggedIn/View/Format.elm
index 2bfed23..7925a5c 100644
--- a/src/client/elm/LoggedIn/View/Price.elm
+++ b/src/client/elm/LoggedIn/View/Format.elm
@@ -1,4 +1,4 @@
-module LoggedIn.View.Price
+module LoggedIn.View.Format
( price
) where
@@ -8,13 +8,13 @@ import Model.Conf exposing (Conf)
price : Conf -> Int -> String
price conf amount =
- ( formatInt amount
+ ( number amount
++ " "
++ conf.currency
)
-formatInt : Int -> String
-formatInt n =
+number : Int -> String
+number n =
abs n
|> toString
|> toList