mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-21 20:27:36 +03:00
Elm review
This commit is contained in:
parent
40a2624cd8
commit
cd04afe5bc
@ -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) )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user