diff --git a/intro/part2/src/Main.elm b/intro/part2/src/Main.elm index aa164df..d7e9431 100644 --- a/intro/part2/src/Main.elm +++ b/intro/part2/src/Main.elm @@ -7,18 +7,13 @@ import Html.Attributes exposing (..) viewTags tags = let renderedTags = - -- 👉 TODO: use `List.map` and `viewTag` to render the tags - [] + List.map viewTag tags in div [ class "tag-list" ] renderedTags viewTag tagName = - {- 👉 TODO: render something like this: - - - -} - button [] [] + button [ class "tag-pill tag-default" ] [ text tagName ] main = @@ -34,9 +29,7 @@ main = , div [ class "col-md-3" ] [ div [ class "sidebar" ] [ p [] [ text "Popular Tags" ] - - -- 👉 TODO: instead of passing [] to viewTags, pass the actual tags - , viewTags [] + , viewTags tags ] ] ]