From f7b99c133b7037d28f94ddef0306f7f9b5c2829d Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 28 Feb 2024 12:57:02 +0700 Subject: [PATCH] Update href to navigate --- lib/polar_web/components/layouts/app.html.heex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/polar_web/components/layouts/app.html.heex b/lib/polar_web/components/layouts/app.html.heex index 0572bbf..6af5a78 100644 --- a/lib/polar_web/components/layouts/app.html.heex +++ b/lib/polar_web/components/layouts/app.html.heex @@ -100,7 +100,7 @@
<.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", @@ -112,7 +112,7 @@ <%= gettext("Home") %> <.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",