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 =
|
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
|
||||||
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user