From e7ba89551c2fa63ad2aa8ffa100fe1fb6ee9afc7 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sat, 23 Nov 2024 20:08:03 +0100 Subject: feat: don't show menu item icon container if it's not provided --- src/frontend/tubo/components/layout.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/frontend') diff --git a/src/frontend/tubo/components/layout.cljs b/src/frontend/tubo/components/layout.cljs index d72d76d..614c7b6 100644 --- a/src/frontend/tubo/components/layout.cljs +++ b/src/frontend/tubo/components/layout.cljs @@ -138,8 +138,9 @@ (defn menu-item [{:keys [label icon on-click link] :as item}] (let [content [:<> - [:span.text-xs.min-w-4.w-4.flex.justify-center.items-center - icon] + (when icon + [:span.text-xs.min-w-4.w-4.flex.justify-center.items-center + icon]) [:span.whitespace-nowrap label]] classes ["relative" "flex" "items-center" "gap-x-3" "hover:bg-neutral-200" -- cgit v1.2.3