mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-19 11:41:32 +03:00
Extract viewAll
This commit is contained in:
parent
b54e44b76c
commit
c41eab81e8
@ -197,10 +197,7 @@ view_ model =
|
||||
viewCategory model category
|
||||
|
||||
Routes.All ->
|
||||
withSideNav model.route
|
||||
[ mainContentHeader "All"
|
||||
, viewPreviews "all" (examples (\_ -> True))
|
||||
]
|
||||
viewAll model
|
||||
|
||||
|
||||
viewExample : Model -> Example a msg -> Html msg
|
||||
@ -220,6 +217,14 @@ notFound =
|
||||
}
|
||||
|
||||
|
||||
viewAll : Model -> Html Msg
|
||||
viewAll model =
|
||||
withSideNav model.route
|
||||
[ mainContentHeader "All"
|
||||
, viewPreviews "all" (Dict.values model.moduleStates)
|
||||
]
|
||||
|
||||
|
||||
viewCategory : Model -> Category -> Html Msg
|
||||
viewCategory model category =
|
||||
withSideNav model.route
|
||||
|
Loading…
Reference in New Issue
Block a user