mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +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
28 lines
806 B
Text
28 lines
806 B
Text
<header class="flex justify-between items-center text-primary font-medium">
|
|
<h1 class="text-xl"><%= t(".accounts") %></h1>
|
|
<div class="flex items-center gap-5">
|
|
<div class="flex items-center gap-2">
|
|
<%= render DS::Link.new(
|
|
text: "New account",
|
|
href: new_account_path(return_to: accounts_path),
|
|
variant: "primary",
|
|
icon: "plus",
|
|
frame: :modal
|
|
) %>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<% if @manual_accounts.empty? && @plaid_items.empty? %>
|
|
<%= render "empty" %>
|
|
<% else %>
|
|
<div class="space-y-2">
|
|
<% if @plaid_items.any? %>
|
|
<%= render @plaid_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @manual_accounts.any? %>
|
|
<%= render "accounts/index/manual_accounts", accounts: @manual_accounts %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|