Update intro/part2
This commit is contained in:
@@ -7,14 +7,14 @@ import Html.Attributes exposing (..)
|
|||||||
viewTags tags =
|
viewTags tags =
|
||||||
let
|
let
|
||||||
renderedTags =
|
renderedTags =
|
||||||
-- 👉 TODO use `List.map` and `viewTag` to render the tags
|
-- 👉 TODO: use `List.map` and `viewTag` to render the tags
|
||||||
[]
|
[]
|
||||||
in
|
in
|
||||||
div [ class "tag-list" ] renderedTags
|
div [ class "tag-list" ] renderedTags
|
||||||
|
|
||||||
|
|
||||||
viewTag tagName =
|
viewTag tagName =
|
||||||
{- 👉 TODO render something like this:
|
{- 👉 TODO: render something like this:
|
||||||
|
|
||||||
<button class="tag-pill tag-default">tag name goes here</button>
|
<button class="tag-pill tag-default">tag name goes here</button>
|
||||||
-}
|
-}
|
||||||
@@ -35,7 +35,7 @@ main =
|
|||||||
[ div [ class "sidebar" ]
|
[ div [ class "sidebar" ]
|
||||||
[ p [] [ text "Popular Tags" ]
|
[ p [] [ text "Popular Tags" ]
|
||||||
|
|
||||||
-- 👉 TODO instead of passing [] to viewTags, pass the actual tags
|
-- 👉 TODO: instead of passing [] to viewTags, pass the actual tags
|
||||||
, viewTags []
|
, viewTags []
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user