switch to using Browser.document so we can set title

This commit is contained in:
Aaron Bieber 2023-05-29 07:33:00 -06:00
parent 92cdbdb8a9
commit 71e10f9008
No known key found for this signature in database

View File

@ -1,6 +1,6 @@
module Main exposing (..) module Main exposing (..)
import Browser import Browser exposing (Document)
import Css exposing (padding, px) import Css exposing (padding, px)
import Html.Styled exposing (..) import Html.Styled exposing (..)
import Html.Styled.Attributes exposing (css, disabled, href, placeholder, style) import Html.Styled.Attributes exposing (css, disabled, href, placeholder, style)
@ -36,9 +36,9 @@ type alias Model =
main : Program () Model Msg main : Program () Model Msg
main = main =
Browser.element Browser.document
{ init = init { init = init
, view = view >> toUnstyled , view = view
, update = update , update = update
, subscriptions = \_ -> Sub.none , subscriptions = \_ -> Sub.none
} }
@ -86,9 +86,11 @@ init _ =
( initialModel, Cmd.none ) ( initialModel, Cmd.none )
view : Model -> Html Msg view : Model -> Document Msg
view model = view model =
div { body =
[ Html.Styled.toUnstyled
(div
[ css [ css
[ padding (px 30) [ padding (px 30)
] ]
@ -107,6 +109,10 @@ view model =
] ]
] ]
] ]
)
]
, title = "pr-status"
}
viewValidation : Model -> Bool viewValidation : Model -> Bool