Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

refactor(design-system): migrate orphan btn-- buttons to DS::Button / DS::Link (#1715 §5 part A) (#1859)

Guillem Arias Fauste355648c4a6ce
diff --git a/app/views/simplefin_items/new.html.erb b/app/views/simplefin_items/new.html.erb
index 4979ed5c5f..d0b3ffd9b8 100644
--- a/app/views/simplefin_items/new.html.erb
+++ b/app/views/simplefin_items/new.html.erb
@@ -22,7 +22,7 @@
variant: :secondary,
data: { turbo_frame: "_top", action: "DS--dialog#close" }
) %>
- <%= f.submit t(".connect") %>
+ <%= render DS::Button.new(text: t(".connect"), type: :submit) %>
</div>
</div>
<% end %>