aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update/LoggedIn/Account.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/elm/Update/LoggedIn/Account.elm')
-rw-r--r--src/client/elm/Update/LoggedIn/Account.elm16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/client/elm/Update/LoggedIn/Account.elm b/src/client/elm/Update/LoggedIn/Account.elm
index c7a66dd..496fab1 100644
--- a/src/client/elm/Update/LoggedIn/Account.elm
+++ b/src/client/elm/Update/LoggedIn/Account.elm
@@ -1,26 +1,16 @@
module Update.LoggedIn.Account
- ( AccountAction(..)
- , updateAccount
+ ( updateAccount
) where
import Maybe
-import Time exposing (Time)
import Dict
-import Model.User exposing (UserId)
-import Model.Payer exposing (..)
+import Model.Payer exposing (updatePayers)
+import Model.Action.AccountAction exposing (..)
import Model.View.LoggedIn.Account exposing (..)
import Utils.Maybe exposing (isJust)
-type AccountAction =
- ToggleDetail
- | UpdatePayer UserId Time Int
- | ToggleIncomeEdition
- | UpdateIncomeEdition String
- | UpdateEditionError String
- | UpdateIncome Time Int
-
updateAccount : AccountAction -> Account -> Account
updateAccount action account =
case action of