1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Use icon helper for all-the-things (#2191)

* Use icon helper for all-the-things

* Pass size and color to the icon from buttonish components directly
This commit is contained in:
Alex Hatzenbuhler 2025-05-06 11:08:18 -05:00 committed by GitHub
parent 0fdeebceb1
commit c0267d5665
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 28 additions and 18 deletions

View file

@ -1,6 +1,6 @@
<%= container do %>
<% if icon && (icon_position != :right) %>
<%= lucide_icon(icon, class: icon_classes) %>
<%= helpers.icon(icon, size: size, color: icon_color) %>
<% end %>
<% unless icon_only? %>
@ -8,6 +8,6 @@
<% end %>
<% if icon && icon_position == :right %>
<%= lucide_icon(icon, class: icon_classes) %>
<%= helpers.icon(icon, size: size, color: icon_color) %>
<% end %>
<% end %>