Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Add settings button to subscription upgrade view

Josh Pigford34b3e4ae2014
diff --git a/app/views/subscriptions/upgrade.html.erb b/app/views/subscriptions/upgrade.html.erb
index e1edb17f..e1456beb 100644
--- a/app/views/subscriptions/upgrade.html.erb
+++ b/app/views/subscriptions/upgrade.html.erb
@@ -2,7 +2,15 @@
<nav class="p-4">
<h1 class="sr-only">Upgrade</h1>
- <div class="flex justify-end">
+ <div class="flex justify-end gap-2">
+ <%= render ButtonComponent.new(
+ text: "Settings",
+ icon: "settings",
+ icon_position: :left,
+ variant: "ghost",
+ href: settings_profile_path(return_to: request.fullpath)
+ ) %>
+
<%= render ButtonComponent.new(
text: "Sign out",
icon: "log-out",