Elm review

This commit is contained in:
Tessa Kelly 2023-07-26 16:15:25 -06:00
parent 40a2624cd8
commit cd04afe5bc

View File

@ -58,7 +58,6 @@ init =
type Msg
= OpenModal String
| ModalMsg Modal.Msg
| CloseModal
| Focus String
| Focused (Result Dom.Error ())
@ -86,13 +85,6 @@ update msg model =
in
( newModel, Cmd.map ModalMsg cmd )
CloseModal ->
let
( newModel, cmd ) =
Modal.close model
in
( newModel, Cmd.map ModalMsg cmd )
Focus id ->
( model, Task.attempt Focused (Dom.focus id) )