From 9cd343f5ab7cab76c8f86026ff9f75c5217c303b Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Thu, 11 Apr 2019 11:47:59 -0700 Subject: [PATCH] Inline the footer button --- src/Nri/Ui/SlideModal/V2.elm | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Nri/Ui/SlideModal/V2.elm b/src/Nri/Ui/SlideModal/V2.elm index 2c08a6fb..f32dae42 100644 --- a/src/Nri/Ui/SlideModal/V2.elm +++ b/src/Nri/Ui/SlideModal/V2.elm @@ -327,7 +327,16 @@ viewFooter { previous, current, upcoming } = , 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 ++ Active :: List.map (uncurry InactiveDisabled) upcoming @@ -342,20 +351,6 @@ uncurry 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 = Active | Inactive State String