blob: ec6a0c166f927e65b39e1056ee92b9a18eb8050e (
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 msg model =
case msg of
IncomeMsg.NoOp ->
( model
, Cmd.none
)
IncomeMsg.AddIncomeMsg formMsg ->
( { model | addIncome = Form.update formMsg model.addIncome }
, Cmd.none
)
|