Add transaction modal flow (#633)

* Add transaction modal flow

* Preserve decimals when creating transactions
This commit is contained in:
Jose Farias
2024-04-16 12:44:31 -06:00
committed by GitHub
parent a22c7a0e9c
commit cd8d741fe1
12 changed files with 137 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
<h1 class="text-xl">Transactions</h1>
<div class="flex items-center gap-5">
<div class="flex items-center gap-2">
<%= link_to new_transaction_path, class: "rounded-lg bg-gray-900 text-white flex items-center gap-1 justify-center hover:bg-gray-700 px-3 py-2" do %>
<%= link_to new_transaction_path, class: "rounded-lg bg-gray-900 text-white flex items-center gap-1 justify-center hover:bg-gray-700 px-3 py-2", data: { turbo_frame: :modal } do %>
<%= lucide_icon("plus", class: "w-5 h-5") %>
<p>New transaction</p>
<% end %>