Update example.

This commit is contained in:
Dillon Kearns 2021-07-29 09:48:25 -07:00
parent 6261f79c9c
commit 526f1b1256

View File

@ -10,13 +10,14 @@ import OptimizedDecoder as D
import Pages.Flags
import Pages.PageUrl exposing (PageUrl)
import Path exposing (Path)
import Route exposing (Route)
import Secrets
import SharedTemplate exposing (SharedTemplate)
import Tailwind.Utilities
import View exposing (View)
template : SharedTemplate Msg Model Data SharedMsg msg
template : SharedTemplate Msg Model Data msg
template =
{ init = init
, update = update
@ -24,7 +25,6 @@ template =
, data = data
, subscriptions = subscriptions
, onPageChange = Just OnPageChange
, sharedMsg = SharedMsg
}
@ -34,7 +34,6 @@ type Msg
, query : Maybe String
, fragment : Maybe String
}
| SharedMsg SharedMsg
type alias Data =
@ -76,9 +75,6 @@ update msg model =
OnPageChange _ ->
( { model | showMobileMenu = False }, Cmd.none )
SharedMsg globalMsg ->
( model, Cmd.none )
subscriptions : Path -> Model -> Sub Msg
subscriptions _ _ =
@ -95,7 +91,7 @@ view :
Data
->
{ path : Path
, frontmatter : route
, route : Maybe Route
}
-> Model
-> (Msg -> msg)