Skip to content

Commit

Permalink
Move toolbar to application level.
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Nov 7, 2024
1 parent 73ba2ac commit a56947e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/components/_toolbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<%= link_to "Federal Tax Brackets", federal_tax_brackets_path, data: { turbo_stream: true }, class: active_tab == :federal_tax_brackets ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
</li>
<li class="mx-auto">
<%= link_to "Incomes", incomes_path, class: active_tab == :incomes ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
<%= link_to "Incomes", incomes_path, data: { turbo_stream: false }, class: active_tab == :incomes ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
</li>
<li class="mx-auto">
<%= link_to "Fixed Expenses", fixed_expenses_path, class: active_tab == :fixed_expenses ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
<%= link_to "Fixed Expenses", fixed_expenses_path, data: { turbo_stream: false }, class: active_tab == :fixed_expenses ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
</li>
</ul>
<% end %>
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<body class="bg-gray-200">
<main class="mx-auto px-9 flex flex-container">
<%= render partial: "components/toolbar", locals: { active_tab: :budget_calculator } %>
<%= yield %>
</main>
</body>
Expand Down

0 comments on commit a56947e

Please sign in to comment.