switch to using Browser.document so we can set title
This commit is contained in:
parent
92cdbdb8a9
commit
71e10f9008
16
src/Main.elm
16
src/Main.elm
@ -1,6 +1,6 @@
|
||||
module Main exposing (..)
|
||||
|
||||
import Browser
|
||||
import Browser exposing (Document)
|
||||
import Css exposing (padding, px)
|
||||
import Html.Styled exposing (..)
|
||||
import Html.Styled.Attributes exposing (css, disabled, href, placeholder, style)
|
||||
@ -36,9 +36,9 @@ type alias Model =
|
||||
|
||||
main : Program () Model Msg
|
||||
main =
|
||||
Browser.element
|
||||
Browser.document
|
||||
{ init = init
|
||||
, view = view >> toUnstyled
|
||||
, view = view
|
||||
, update = update
|
||||
, subscriptions = \_ -> Sub.none
|
||||
}
|
||||
@ -86,9 +86,11 @@ init _ =
|
||||
( initialModel, Cmd.none )
|
||||
|
||||
|
||||
view : Model -> Html Msg
|
||||
view : Model -> Document Msg
|
||||
view model =
|
||||
div
|
||||
{ body =
|
||||
[ Html.Styled.toUnstyled
|
||||
(div
|
||||
[ css
|
||||
[ padding (px 30)
|
||||
]
|
||||
@ -107,6 +109,10 @@ view model =
|
||||
]
|
||||
]
|
||||
]
|
||||
)
|
||||
]
|
||||
, title = "pr-status"
|
||||
}
|
||||
|
||||
|
||||
viewValidation : Model -> Bool
|
||||
|
Loading…
Reference in New Issue
Block a user