Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

add icon for Transfer (#1431)

Tao Chen8f5694dd7944
diff --git a/app/views/transactions/_transaction.html.erb b/app/views/transactions/_transaction.html.erb
index 0fa1a608cf..f8068e999a 100644
--- a/app/views/transactions/_transaction.html.erb
+++ b/app/views/transactions/_transaction.html.erb
@@ -30,7 +30,14 @@
<div class="max-w-full <%= "opacity-50 text-secondary" if entry.excluded %>">
<%= content_tag :div, class: ["flex items-center gap-3 lg:gap-4"] do %>
<div class="hidden lg:flex">
- <% if transaction.merchant&.logo_url.present? %>
+ <% if transaction.transfer? %>
+ <%= render DS::FilledIcon.new(
+ icon: "arrow-right-left",
+ hex_color: Category::TRANSFER_COLOR,
+ size: "lg",
+ rounded: true
+ ) %>
+ <% elsif transaction.merchant&.logo_url.present? %>
<%= image_tag Setting.transform_brand_fetch_url(transaction.merchant.logo_url),
class: "w-9 h-9 rounded-full border border-secondary",
loading: "lazy" %>