Rename function.

This commit is contained in:
Dillon Kearns 2019-08-05 16:01:56 -07:00
parent 9ec5923ea1
commit ad41434ae1
2 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ view : Model -> Page (Metadata Msg) (Element Msg) -> { title : String, body : Ht
view model page =
let
{ title, body } =
pageOrPostView model page
pageView model page
in
{ title = title
, body =
@ -108,8 +108,8 @@ view model page =
}
pageOrPostView : Model -> Page (Metadata Msg) (Element Msg) -> { title : String, body : Element Msg }
pageOrPostView model page =
pageView : Model -> Page (Metadata Msg) (Element Msg) -> { title : String, body : Element Msg }
pageView model page =
case page.metadata of
Metadata.Page metadata ->
{ title = metadata.title

View File

@ -97,7 +97,7 @@ view : Model -> Page (Metadata Msg) (Element Msg) -> { title : String, body : Ht
view model page =
let
{ title, body } =
pageOrPostView model page
pageView model page
in
{ title = title
, body =
@ -108,8 +108,8 @@ view model page =
}
pageOrPostView : Model -> Page (Metadata Msg) (Element Msg) -> { title : String, body : Element Msg }
pageOrPostView model page =
pageView : Model -> Page (Metadata Msg) (Element Msg) -> { title : String, body : Element Msg }
pageView model page =
case page.metadata of
Metadata.Page metadata ->
{ title = metadata.title