diff options
author | Joris | 2016-04-05 13:39:48 +0200 |
---|---|---|
committer | Joris | 2016-04-05 13:39:48 +0200 |
commit | edca79a7e2bfed1a08de780cc6ab7eac430ef950 (patch) | |
tree | 02f794910924f1ca0114d08a254deed98388c70f /src/client/elm/LoggedIn/Income/Update.elm | |
parent | d19b69eeeb0c24ee7e4a75b0da32eefba1d43928 (diff) |
Add a statistics empty page
Diffstat (limited to 'src/client/elm/LoggedIn/Income/Update.elm')
-rw-r--r-- | src/client/elm/LoggedIn/Income/Update.elm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/client/elm/LoggedIn/Income/Update.elm b/src/client/elm/LoggedIn/Income/Update.elm new file mode 100644 index 0000000..4e673fa --- /dev/null +++ b/src/client/elm/LoggedIn/Income/Update.elm @@ -0,0 +1,25 @@ +module LoggedIn.Income.Update + ( update + ) where + +import Effects exposing (Effects) +import Form exposing (Form) + +import LoggedData exposing (LoggedData) + +import LoggedIn.Income.Model as IncomeModel +import LoggedIn.Income.Action as IncomeAction + +update : LoggedData -> IncomeAction.Action -> IncomeModel.Model -> (IncomeModel.Model, Effects IncomeAction.Action) +update loggedData action model = + case action of + + IncomeAction.NoOp -> + ( model + , Effects.none + ) + + IncomeAction.AddIncomeAction formAction -> + ( { model | addIncome = Form.update formAction model.addIncome } + , Effects.none + ) |