diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-02-18 17:12:23 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-02-18 17:12:23 +0100 |
commit | 5dd39fa13e217096273f0d5e12c2957ac65e8f2e (patch) | |
tree | 4a8fa7fa4dde8ef78dcbeeba6435e8bfecd5b2be | |
parent | 818453cb9c18bfabaacc7108c2a2f6207a249a4d (diff) |
chore(frontend): simplify button arguments
-rw-r--r-- | src/frontend/tubo/components/layout.cljs | 8 |
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}]) |