mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 23:45:21 +02:00
* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT * [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT * Update stimulus controller references to use namespace * Fix remaining tests
15 lines
605 B
Text
15 lines
605 B
Text
<%# locals: (transaction:) %>
|
|
|
|
<%= render DS::Menu.new(variant: "button") do |menu| %>
|
|
<% menu.with_button do %>
|
|
<% render partial: "categories/badge", locals: { category: transaction.category } %>
|
|
<% end %>
|
|
|
|
<% menu.with_custom_content do %>
|
|
<%= turbo_frame_tag "category_dropdown", src: category_dropdown_path(category_id: transaction.category_id, transaction_id: transaction.id), loading: :lazy do %>
|
|
<div class="p-6 flex items-center justify-center">
|
|
<p class="text-sm text-secondary animate-pulse"><%= t(".loading") %></p>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|