mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-02 23:52:22 +03:00
Move the active footer to be shared
This commit is contained in:
parent
ccc610b898
commit
1ed8cb2038
@ -132,10 +132,10 @@ viewModal config (State { previousPanel }) summary =
|
||||
currentPanel =
|
||||
[ viewIcon summary.current.icon
|
||||
, 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
|
||||
, viewActiveFooter summary |> Html.map config.parentMsg
|
||||
]
|
||||
in
|
||||
Keyed.node "div"
|
||||
@ -166,12 +166,18 @@ viewModal config (State { previousPanel }) summary =
|
||||
, ( panelId summary.current
|
||||
, panelContainer config.height [ Slide.animateIn direction ] currentPanel
|
||||
)
|
||||
, ( panelId summary.current ++ "-footer"
|
||||
, viewActiveFooter summary |> Html.map config.parentMsg
|
||||
)
|
||||
]
|
||||
|
||||
Nothing ->
|
||||
[ ( panelId summary.current
|
||||
, panelContainer config.height [] currentPanel
|
||||
)
|
||||
, ( panelId summary.current ++ "-footer"
|
||||
, viewActiveFooter summary |> Html.map config.parentMsg
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user