Improve casing consistency

This commit is contained in:
Tessa Kelly 2022-10-06 11:26:26 -06:00
parent 9f7cde6799
commit e1ae0ec2d7
3 changed files with 6 additions and 6 deletions

View File

@ -97,11 +97,11 @@ customize =
view :
List (Attribute route msg)
->
{ breadcrumbs : BreadCrumbs route
{ breadCrumbs : BreadCrumbs route
, isCurrentRoute : route -> Bool
}
-> Html msg
view attrs { breadcrumbs, isCurrentRoute } =
view attrs { breadCrumbs, isCurrentRoute } =
let
config =
customize attrs
@ -135,7 +135,7 @@ view attrs { breadcrumbs, isCurrentRoute } =
, aTagAttributes = config.aTagAttributes
, label = config.breadCrumbsLabel
}
breadcrumbs
breadCrumbs
in
case config.extraSubheadContent of
[] ->

View File

@ -71,7 +71,7 @@ example =
++ Code.newlineWithIndent 1
++ Code.commentInline "See the BreadCrumbs example to more fully customize the main data in the Header"
++ Code.recordMultiline
[ ( "breadcrumbs"
[ ( "breadCrumbs"
, Code.newlineWithIndent 2
++ Code.fromModule "BreadCrumbs" "init "
++ Code.record
@ -90,7 +90,7 @@ example =
, Heading.h2 [ Heading.plaintext "Example" ]
, Header.view
(Header.breadCrumbsLabel "header example breadcrumbs" :: attributes)
{ breadcrumbs =
{ breadCrumbs =
BreadCrumbs.init
{ id = "page-header"
, text = "Page"

View File

@ -113,7 +113,7 @@ viewHeader currentRoute extraContent =
, Header.extraContent extraContent
, Header.customPageWidth (Css.px 1400)
]
{ breadcrumbs = crumbs
{ breadCrumbs = crumbs
, isCurrentRoute = (==) currentRoute
}
)