1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Use icon helper instead of lucide_icon helper

This commit is contained in:
hatz 2025-05-01 18:54:53 -05:00
parent 7d367587e2
commit efa2c4cfe1
No known key found for this signature in database
3 changed files with 11 additions and 11 deletions

View file

@ -11,7 +11,7 @@
<section class="space-y-4">
<div class="flex items-center gap-1 text-secondary">
<%= lucide_icon "tag", class: "w-4 h-4 shrink-0" %>
<%= icon "tag", size: "sm" %>
<h3 class="text-sm font-medium text-primary">Rule name (optional)</h3>
</div>
<div class="ml-6">
@ -21,7 +21,7 @@
<section class="space-y-4">
<div class="flex items-center gap-1 text-secondary">
<%= lucide_icon "help-circle", class: "w-4 h-4 shrink-0" %>
<%= icon "help-circle", size: "sm" %>
<h3 class="text-sm font-medium text-primary font-mono">IF</h3>
</div>
@ -58,7 +58,7 @@
<section class="space-y-4">
<div class="flex items-center gap-1 text-secondary">
<%= lucide_icon "arrow-right", class: "w-4 h-4 shrink-0" %>
<%= icon "arrow-right", size: "sm" %>
<h3 class="text-sm font-medium text-primary font-mono">THEN</h3>
</div>
@ -81,7 +81,7 @@
<section class="space-y-4">
<div class="flex items-center gap-1 text-secondary">
<%= lucide_icon "calendar", class: "w-4 h-4 shrink-0" %>
<%= icon "calendar", size: "sm" %>
<h3 class="text-sm font-medium text-primary font-mono">FOR</h3>
</div>

View file

@ -9,7 +9,7 @@
<% if rule.conditions.any? %>
<div class="flex items-center gap-2 mt-1">
<div class="flex items-center gap-1 text-secondary w-16 shrink-0">
<%= lucide_icon "help-circle", class: "w-4 h-4 shrink-0" %>
<%= icon "help-circle", size: "sm" %>
<span class="font-mono text-xs">IF</span>
</div>
<p class="flex items-center flex-wrap gap-1.5 m-0">
@ -29,7 +29,7 @@
<div class="flex items-center gap-2 mt-1">
<div class="flex items-center gap-1 text-secondary w-16 shrink-0">
<%= lucide_icon "arrow-right", class: "w-4 h-4 shrink-0" %>
<%= icon "arrow-right", size: "sm" %>
<span class="font-mono text-xs">THEN</span>
</div>
<p class="flex items-center flex-wrap gap-1.5 m-0">
@ -48,7 +48,7 @@
<div class="flex items-center gap-2 mt-1">
<div class="flex items-center gap-1 text-secondary w-16 shrink-0">
<%= lucide_icon "calendar", class: "w-4 h-4 shrink-0" %>
<%= icon "calendar", size: "sm" %>
<span class="font-mono text-xs">FOR</span>
</div>
<p class="flex items-center flex-wrap gap-1.5 m-0">

View file

@ -49,18 +49,18 @@
<div class="flex items-center">
<%= link_to rules_path(sort_by: "name", direction: (@sort_by == "name" && @direction == "asc") ? "desc" : "asc"),
class: "px-2 py-1 rounded flex items-center hover:bg-gray-100 #{@sort_by == 'name' ? 'font-medium' : ''}" do %>
<span>Name</span>
<span class="mr-1">Name</span>
<% if @sort_by == "name" %>
<%= lucide_icon(@direction == "asc" ? "arrow-up" : "arrow-down", class: "w-3 h-3 text-accent ml-1") %>
<%= icon(@direction == "asc" ? "arrow-up" : "arrow-down", size: "xs") %>
<% end %>
<% end %>
</div>
<div class="flex items-center">
<%= link_to rules_path(sort_by: "created_at", direction: (@sort_by == "created_at" && @direction == "asc") ? "desc" : "asc"),
class: "px-2 py-1 rounded flex items-center hover:bg-gray-100 #{@sort_by == 'created_at' ? 'font-medium' : ''}" do %>
<span>Date</span>
<span class="mr-1">Date</span>
<% if @sort_by == "created_at" %>
<%= lucide_icon(@direction == "asc" ? "arrow-up" : "arrow-down", class: "w-3 h-3 text-accent ml-1") %>
<%= icon(@direction == "asc" ? "arrow-up" : "arrow-down", size: "xs") %>
<% end %>
<% end %>
</div>