Skip to content

Commit

Permalink
Update href to navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Feb 28, 2024
1 parent 2ed6435 commit f7b99c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/polar_web/components/layouts/app.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<div class="space-y-1 px-2 pb-3 pt-2 sm:px-3">
<!-- Current: "bg-slate-900 text-white", Default: "text-slate-300 hover:bg-slate-700 hover:text-white" -->
<.link
href={~p"/"}
navigate={~p"/"}
class={
if assigns[:current_path] == ~p"/",
do: "bg-slate-900 text-white block rounded-md px-3 py-2 text-base font-medium",
Expand All @@ -112,7 +112,7 @@
<%= gettext("Home") %>
</.link>
<.link
href={~p"/dashboard"}
navigate={~p"/dashboard"}
class={
if assigns[:current_path] == ~p"/dashboard",
do: "bg-slate-900 text-white block rounded-md px-3 py-2 text-base font-medium",
Expand Down

0 comments on commit f7b99c1

Please sign in to comment.