balance sheet

This commit is contained in:
2024-10-24 22:27:29 -07:00
parent f9d02e4798
commit 864ecec1b2
4 changed files with 28 additions and 6 deletions

View File

@@ -116,10 +116,13 @@
(str " bg-white dark:bg-gray-600 border-gray-300 dark:border-gray-700 text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-100 font-medium border border-gray-300 dark:border-gray-700")))
(assoc :tabindex 0)
(assoc :href (:href params "#")))
[:div.htmx-indicator.flex.items-center
(svg/spinner {:class "inline w-4 h-4 text-white"})
[:div.ml-3 "Loading..."]]
(into [:div.htmx-indicator-hidden.inline-flex.gap-2.items-center.justify-center] children)])
(when (:indicator? params true)
[:div.htmx-indicator.flex.items-center
(svg/spinner {:class "inline w-4 h-4 text-white"})
[:div.ml-3 "Loading..."]])
(into [:div.inline-flex.gap-2.items-center.justify-center {:class (when (:indicator? params true)
"htmx-indicator-hidden")}]
children)])
(defn icon-button- [params & children]
(into