Use tabnav component for wallet view

This commit is contained in:
Râu Cao
2022-12-12 14:10:46 +01:00
parent cd46daa6ba
commit ea6173c60f
5 changed files with 29 additions and 29 deletions

View File

@@ -0,0 +1,14 @@
<section>
<div class="border-b border-gray-200">
<nav class="-mb-px flex" aria-label="Tabs">
<%= render TabnavLinkComponent.new(
name: "Info", path: wallet_path,
active: current_page?(wallet_path)
) %>
<%= render TabnavLinkComponent.new(
name: "Transactions", path: wallet_transactions_path,
active: current_page?(wallet_transactions_path)
) %>
</nav>
</div>
</section>