mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-18 19:21:29 +03:00
Extract not found
This commit is contained in:
parent
f75565cb17
commit
fb34cf93ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user