Skip to content

Commit

Permalink
Merge pull request #112 from kantuni/patch-37
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
ryan-haskell committed Jun 28, 2023
2 parents da6aaed + 233ba42 commit e72342c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/concepts/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -871,13 +871,13 @@ import Components.Dropdown
-- MODEL
type alias Model =
{ dropdown : Ui.Dropdown.Model Animal
{ dropdown : Components.Dropdown.Model Animal
}
init : () -> ( Model, Effect Msg )
init _ =
( { dropdown = Ui.Dropdown.init { selected = Nothing }
( { dropdown = Components.Dropdown.init { selected = Nothing }
}
, Effect.none
)
Expand All @@ -888,15 +888,15 @@ init _ =
type Msg
= DropdownSent (Ui.Dropdown.Msg Animal Msg)
= DropdownSent (Components.Dropdown.Msg Animal Msg)
| ChangedSelection Animal
update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
DropdownSent innerMsg ->
Ui.Dropdown.update
Components.Dropdown.update
{ msg = innerMsg
, model = model.dropdown
, toModel = \dropdown -> { model | dropdown = dropdown }
Expand Down

0 comments on commit e72342c

Please sign in to comment.