mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-06 22:49:38 +03:00
Inline the footer button
This commit is contained in:
parent
42c3dae2c4
commit
9cd343f5ab
@ -327,7 +327,16 @@ viewFooter { previous, current, upcoming } =
|
|||||||
, Css.margin4 (Css.px 20) Css.zero Css.zero Css.zero
|
, Css.margin4 (Css.px 20) Css.zero Css.zero Css.zero
|
||||||
]
|
]
|
||||||
[]
|
[]
|
||||||
[ viewFooterButton { label = current.buttonLabel, msg = nextPanel }
|
[ Button.button
|
||||||
|
{ onClick = nextPanel
|
||||||
|
, size = Button.Large
|
||||||
|
, style = Button.Primary
|
||||||
|
, width = Button.WidthExact 230
|
||||||
|
}
|
||||||
|
{ label = current.buttonLabel
|
||||||
|
, state = Button.Enabled
|
||||||
|
, icon = Nothing
|
||||||
|
}
|
||||||
, (List.map (uncurry Inactive) previous
|
, (List.map (uncurry Inactive) previous
|
||||||
++ Active
|
++ Active
|
||||||
:: List.map (uncurry InactiveDisabled) upcoming
|
:: List.map (uncurry InactiveDisabled) upcoming
|
||||||
@ -342,20 +351,6 @@ uncurry f ( a, b ) =
|
|||||||
f a b
|
f a b
|
||||||
|
|
||||||
|
|
||||||
viewFooterButton : { label : String, msg : msg } -> Html msg
|
|
||||||
viewFooterButton { label, msg } =
|
|
||||||
Button.button
|
|
||||||
{ onClick = msg
|
|
||||||
, size = Button.Large
|
|
||||||
, style = Button.Primary
|
|
||||||
, width = Button.WidthExact 230
|
|
||||||
}
|
|
||||||
{ label = label
|
|
||||||
, state = Button.Enabled
|
|
||||||
, icon = Nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
type Dot
|
type Dot
|
||||||
= Active
|
= Active
|
||||||
| Inactive State String
|
| Inactive State String
|
||||||
|
Loading…
Reference in New Issue
Block a user