From edca79a7e2bfed1a08de780cc6ab7eac430ef950 Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 5 Apr 2016 13:39:48 +0200 Subject: Add a statistics empty page --- src/client/elm/LoggedIn/Income/Update.elm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/client/elm/LoggedIn/Income/Update.elm (limited to 'src/client/elm/LoggedIn/Income/Update.elm') 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 + ) -- cgit v1.2.3