Extract not found

This commit is contained in:
Tessa Kelly 2022-03-30 11:13:11 -07:00
parent f75565cb17
commit fb34cf93ab

View File

@ -191,10 +191,7 @@ view_ model =
|> Html.map (UpdateModuleStates example.name)
Nothing ->
Page.notFound
{ link = ChangeRoute Routes.All
, recoveryText = Page.ReturnTo "Component Library"
}
notFound
Routes.Category category ->
withSideNav model.route
@ -224,6 +221,14 @@ viewExample model example =
]
notFound : Html Msg
notFound =
Page.notFound
{ link = ChangeRoute Routes.All
, recoveryText = Page.ReturnTo "Component Library"
}
withSideNav : Route -> List (Html Msg) -> Html Msg
withSideNav currentRoute content =
Html.div