mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +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:
parent
0fdeebceb1
commit
c0267d5665
6 changed files with 28 additions and 18 deletions
|
@ -4,7 +4,7 @@
|
|||
<div class="px-1">
|
||||
<%= wrapper do %>
|
||||
<% if icon %>
|
||||
<%= lucide_icon(icon, class: destructive? ? "text-destructive" : "fg-gray") %>
|
||||
<%= helpers.icon(icon, color: destructive? ? :destructive : :default) %>
|
||||
<% end %>
|
||||
<%= tag.span(text, class: text_classes) %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue