From e2a4dc4b9203a7798b359af9133dd48c731477b0 Mon Sep 17 00:00:00 2001 From: shibao Date: Wed, 9 Nov 2022 21:15:28 -0500 Subject: [PATCH] add attrs to tag card --- lib/cannery_web/components/tag_card.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/cannery_web/components/tag_card.ex b/lib/cannery_web/components/tag_card.ex index 3cfd38da..ac7c1403 100644 --- a/lib/cannery_web/components/tag_card.ex +++ b/lib/cannery_web/components/tag_card.ex @@ -4,6 +4,10 @@ defmodule CanneryWeb.Components.TagCard do """ use CanneryWeb, :component + alias Cannery.Tags.Tag + + attr :tag, Tag, required: true + slot(:inner_block, required: true) def tag_card(assigns) do ~H""" @@ -19,6 +23,8 @@ defmodule CanneryWeb.Components.TagCard do """ end + attr :tag, Tag, required: true + def simple_tag_card(assigns) do ~H"""