diff --git a/styleguide-app/Main.elm b/styleguide-app/Main.elm index 55714c98..b9b4cb1d 100644 --- a/styleguide-app/Main.elm +++ b/styleguide-app/Main.elm @@ -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