diff --git a/lib/freedive_web/components/layouts/app.html.heex b/lib/freedive_web/components/layouts/app.html.heex index 842d180..cfaf638 100644 --- a/lib/freedive_web/components/layouts/app.html.heex +++ b/lib/freedive_web/components/layouts/app.html.heex @@ -4,7 +4,7 @@ <.navbar_brand class="ml-1"> <.navbar_item> <.title is-4> - <.link patch={~p"/"} class="has-text-dark"> + <.link navigate={~p"/"} class="has-text-dark"> Freedive @@ -103,7 +103,7 @@ <.link href={~p"/packages"} class="navbar-item"> Packages --%> - <.link patch={~p"/services"} class="navbar-item"> + <.link navigate={~p"/services"} class="navbar-item"> Services @@ -118,7 +118,7 @@ <.navbar_dropdown> <%= if @current_user do %> - <.link patch={~p"/users/settings"} class="navbar-item"> + <.link navigate={~p"/users/settings"} class="navbar-item"> Settings <.link href={~p"/users/log_out"} method="delete" class="navbar-item"> diff --git a/lib/freedive_web/live/home_live.ex b/lib/freedive_web/live/home_live.ex index 8f47697..c6aebdb 100644 --- a/lib/freedive_web/live/home_live.ex +++ b/lib/freedive_web/live/home_live.ex @@ -94,11 +94,11 @@ defmodule FreediveWeb.HomeLive.Components do def items_block(assigns) do ~H""" <%= for {_name, item} <- @items do %> - <.link class="panel-block pt-1" patch={item.path}> + <.link class="panel-block pt-1" navigate={item.path}> <.icon for={item.icon} color="auto" aria-hidden="true" /> -
<%= item.name %>
+
Nav: <%= item.name %>
<% end %> """