From 6a978cb762270b86d33dcaa2ed73e3113fa32dd7 Mon Sep 17 00:00:00 2001 From: Celso Bonutti Date: Thu, 10 Mar 2022 11:06:40 -0300 Subject: [PATCH] updates RadioButton example controls --- styleguide-app/Examples/RadioButton.elm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/styleguide-app/Examples/RadioButton.elm b/styleguide-app/Examples/RadioButton.elm index 0af9f4da..7025ba77 100644 --- a/styleguide-app/Examples/RadioButton.elm +++ b/styleguide-app/Examples/RadioButton.elm @@ -239,7 +239,7 @@ controlAttributes = ControlExtra.list |> ControlExtra.optionalListItem "visibility" labelVisibility |> ControlExtra.optionalListItem "status" disabledOrEnabled - |> ControlExtra.optionalListItem "showPennant" showPennant + |> ControlExtra.optionalListItem "onPennantClick" onPennantClick |> ControlExtra.optionalListItem "premium" -- TODO: allow the teacher premium level to vary as well: (Control.map @@ -329,11 +329,11 @@ disabledOrEnabled = ] -showPennant : Control ( String, RadioButton.Attribute Selection Msg ) -showPennant = +onPennantClick : Control ( String, RadioButton.Attribute Selection Msg ) +onPennantClick = Control.value - ( "RadioButton.showPennant OpenPremiumModal" - , RadioButton.showPennant (OpenModal "dogs") + ( "RadioButton.onPennantClick OpenPremiumModal" + , RadioButton.onPennantClick (OpenModal "dogs") )