Move the active footer to be shared

This commit is contained in:
Tessa Kelly 2019-04-11 13:08:59 -07:00
parent ccc610b898
commit 1ed8cb2038

View File

@ -132,10 +132,10 @@ viewModal config (State { previousPanel }) summary =
currentPanel = currentPanel =
[ viewIcon summary.current.icon [ viewIcon summary.current.icon
, Text.subHeading , Text.subHeading
[ span [ Html.Styled.Attributes.id (panelId summary.current) ] [ Html.text summary.current.title ] [ span [ Html.Styled.Attributes.id (panelId summary.current) ]
[ Html.text summary.current.title ]
] ]
, viewContent summary.current.content , viewContent summary.current.content
, viewActiveFooter summary |> Html.map config.parentMsg
] ]
in in
Keyed.node "div" Keyed.node "div"
@ -166,12 +166,18 @@ viewModal config (State { previousPanel }) summary =
, ( panelId summary.current , ( panelId summary.current
, panelContainer config.height [ Slide.animateIn direction ] currentPanel , panelContainer config.height [ Slide.animateIn direction ] currentPanel
) )
, ( panelId summary.current ++ "-footer"
, viewActiveFooter summary |> Html.map config.parentMsg
)
] ]
Nothing -> Nothing ->
[ ( panelId summary.current [ ( panelId summary.current
, panelContainer config.height [] currentPanel , panelContainer config.height [] currentPanel
) )
, ( panelId summary.current ++ "-footer"
, viewActiveFooter summary |> Html.map config.parentMsg
)
] ]
) )