forked from hiway/freedive
Fix link patch => navigate
This commit is contained in:
parent
5920177029
commit
b05fd3f763
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
</.link>
|
||||
</.title>
|
||||
|
@ -103,7 +103,7 @@
|
|||
<.link href={~p"/packages"} class="navbar-item">
|
||||
Packages
|
||||
</.link> --%>
|
||||
<.link patch={~p"/services"} class="navbar-item">
|
||||
<.link navigate={~p"/services"} class="navbar-item">
|
||||
Services
|
||||
</.link>
|
||||
</.navbar_dropdown>
|
||||
|
@ -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>
|
||||
<.link href={~p"/users/log_out"} method="delete" class="navbar-item">
|
||||
|
|
|
@ -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}>
|
||||
<span class="panel-icon">
|
||||
<.icon for={item.icon} color="auto" aria-hidden="true" />
|
||||
</span>
|
||||
<div class="mt-2 ml-2"><%= item.name %></div>
|
||||
<div class="mt-2 ml-2">Nav: <%= item.name %></div>
|
||||
</.link>
|
||||
<% end %>
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue