decided to internalize modes inside Chest.elm
This commit is contained in:
@@ -15,11 +15,10 @@ init =
|
||||
View
|
||||
|
||||
|
||||
view : Wealth -> Model -> List (Html Msg)
|
||||
view wealth model =
|
||||
div [ class "level-item" ]
|
||||
[ span [ class "icon is-large" ] [ i [ class "fas fa-2x fa-piggy-bank" ] [] ]
|
||||
, span [ class "icon", onClick StartEdit ] [ i [ class "fas fa-tools" ] [] ]
|
||||
]
|
||||
[ span [ class "icon is-large" ] [ i [ class "fas fa-2x fa-piggy-bank" ] [] ] ]
|
||||
:: (case model of
|
||||
View ->
|
||||
viewWealth wealth
|
||||
@@ -27,6 +26,7 @@ view wealth model =
|
||||
Edit amount ->
|
||||
viewUpdateWealth amount
|
||||
)
|
||||
++ [ span [ class "icon", onClick StartEdit ] [ i [ class "fas fa-tools" ] [] ] ]
|
||||
|
||||
|
||||
viewUpdateWealth amount =
|
||||
|
||||
Reference in New Issue
Block a user