Links for ledger, and bank account picker
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
[auto-ap.ssr.svg :as svg]))
|
||||
|
||||
(defn link-dropdown [links]
|
||||
(if (> (count links) 0)
|
||||
|
||||
(when (> (count links) 0)
|
||||
[:div {:x-data (hx/json {:popper nil
|
||||
:show false})
|
||||
"@click.outside" "show=false"
|
||||
@@ -17,7 +16,7 @@
|
||||
(com/badge {:color "blue"} (count links)))
|
||||
[:div.divide-y.divide-gray-200.bg-white.rounded-lg.shadow.z-50 (hx/alpine-appear {:x-ref "tooltip" :x-show "show" :data-key "show"})
|
||||
[:div {:class "p-3 overflow-y-auto text-sm text-gray-700 dark:text-gray-200"}
|
||||
[:div.flex.flex-col.gap-y-2
|
||||
[:div.flex.flex-col.gap-y-2 {:class "max-w-[24em]"}
|
||||
(for [l links]
|
||||
[:div.flex-initial
|
||||
[:a {:href (:link l) :target "_blank"}
|
||||
|
||||
Reference in New Issue
Block a user