1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 02:57:05 +00:00

ui: Convert Layout to use Effects

This commit is contained in:
James Hillyerd
2020-09-23 23:00:29 -07:00
parent e56365b9a0
commit 7c87649579
3 changed files with 31 additions and 40 deletions

View File

@@ -199,12 +199,10 @@ updateMain msg model session =
LayoutMsg subMsg ->
let
( layout, newSession, cmd ) =
Layout.update subMsg model.layout session
( layout, effect ) =
Layout.update subMsg model.layout
in
( updateSession { model | layout = layout } newSession
, cmd
)
( { model | layout = layout }, effect ) |> performEffects
_ ->
updatePage msg model |> performEffects