blob: 74920f330c1b8929755ee7dfc50039d4b88d5bf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
module LoggedIn.Income.Update exposing
( update
)
import Form exposing (Form)
import LoggedData exposing (LoggedData)
import LoggedIn.Income.Model as IncomeModel
import LoggedIn.Income.Msg as IncomeMsg
update : LoggedData -> IncomeMsg.Msg -> IncomeModel.Model -> (IncomeModel.Model, Cmd IncomeMsg.Msg)
update loggedData action model =
case action of
IncomeMsg.NoOp ->
( model
, Cmd.none
)
IncomeMsg.AddIncomeMsg formMsg ->
( { model | addIncome = Form.update formMsg model.addIncome }
, Cmd.none
)
|