Skip to content

Commit fe617cf

Browse files
lukaszreszkemostlyobvious
authored andcommitted
Rename
There is no more search, therefore this variable isn't correct anymore
1 parent f1340f4 commit fe617cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ruby_event_store-browser/elm/src/Search.elm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type alias Stream =
1313

1414

1515
type alias Model a =
16-
{ searchedStream : Stream
16+
{ stream : Stream
1717
, onSelectMsg : Stream -> a
1818
}
1919

@@ -35,7 +35,7 @@ emptyStreams =
3535

3636
init : (Stream -> a) -> Model a
3737
init onSelectMsg =
38-
{ searchedStream = emptyStreamName
38+
{ stream = emptyStreamName
3939
, onSelectMsg = onSelectMsg
4040
}
4141

@@ -49,24 +49,24 @@ update : Msg -> Model a -> ( Model a, Cmd a )
4949
update msg model =
5050
case msg of
5151
StreamChanged stream ->
52-
( { model | searchedStream = stream }, Cmd.none )
52+
( { model | stream = stream }, Cmd.none )
5353

5454
GoToStream stream ->
55-
( { model | searchedStream = emptyStreamName }
55+
( { model | stream = emptyStreamName }
5656
, onSelectCmd model.onSelectMsg stream
5757
)
5858

5959

6060
view : Model a -> Html Msg
6161
view model =
62-
form [ onSubmit (GoToStream model.searchedStream) ]
62+
form [ onSubmit (GoToStream model.stream) ]
6363
[ div [ class "relative" ]
6464
[ FeatherIcons.search
6565
|> FeatherIcons.withClass "size-4 text-gray-400 absolute pointer-events-none top-3.5 left-2"
6666
|> FeatherIcons.toHtml []
6767
, input
6868
[ class "rounded text-gray-800 cursor-pointer pl-8 pr-12 py-2 w-full appearance-none outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50"
69-
, value model.searchedStream
69+
, value model.stream
7070
, onInput StreamChanged
7171
, placeholder "Quick search…"
7272
, autofocus True

0 commit comments

Comments
 (0)