aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-02-18 17:12:23 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-02-18 17:12:23 +0100
commit5dd39fa13e217096273f0d5e12c2957ac65e8f2e (patch)
tree4a8fa7fa4dde8ef78dcbeeba6435e8bfecd5b2be /src
parent818453cb9c18bfabaacc7108c2a2f6207a249a4d (diff)
chore(frontend): simplify button arguments
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/components/layout.cljs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/tubo/components/layout.cljs b/src/frontend/tubo/components/layout.cljs
index 2e0ab40..e597f45 100644
--- a/src/frontend/tubo/components/layout.cljs
+++ b/src/frontend/tubo/components/layout.cljs
@@ -51,9 +51,9 @@
image)])))
(defn primary-button
- [label on-click-cb left-icon right-icon]
+ [label on-click left-icon right-icon]
[:button.dark:bg-white.bg-stone-800.px-4.rounded-3xl.py-1.outline-none.focus:ring-transparent.whitespace-nowrap
- {:on-click on-click-cb}
+ {:on-click on-click}
(when left-icon
[:i.text-neutral-300.dark:text-neutral-800.text-sm
{:class left-icon}])
@@ -63,9 +63,9 @@
{:class right-icon}])])
(defn secondary-button
- [label on-click-cb left-icon right-icon]
+ [label on-click left-icon right-icon]
[:button.dark:bg-transparent.bg-neutral-100.px-4.rounded-3xl.py-1.border.border-neutral-300.dark:border-stone-700.outline-none.focus:ring-transparent.whitespace-nowrap
- {:on-click on-click-cb}
+ {:on-click on-click}
(when left-icon
[:i.text-neutral-500.dark:text-white.text-sm
{:class left-icon}])