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_brand class="ml-1">
|
||||||
<.navbar_item>
|
<.navbar_item>
|
||||||
<.title is-4>
|
<.title is-4>
|
||||||
<.link patch={~p"/"} class="has-text-dark">
|
<.link navigate={~p"/"} class="has-text-dark">
|
||||||
Freedive
|
Freedive
|
||||||
</.link>
|
</.link>
|
||||||
</.title>
|
</.title>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
<.link href={~p"/packages"} class="navbar-item">
|
<.link href={~p"/packages"} class="navbar-item">
|
||||||
Packages
|
Packages
|
||||||
</.link> --%>
|
</.link> --%>
|
||||||
<.link patch={~p"/services"} class="navbar-item">
|
<.link navigate={~p"/services"} class="navbar-item">
|
||||||
Services
|
Services
|
||||||
</.link>
|
</.link>
|
||||||
</.navbar_dropdown>
|
</.navbar_dropdown>
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
<.navbar_dropdown>
|
<.navbar_dropdown>
|
||||||
<%= if @current_user do %>
|
<%= if @current_user do %>
|
||||||
<.link patch={~p"/users/settings"} class="navbar-item">
|
<.link navigate={~p"/users/settings"} class="navbar-item">
|
||||||
Settings
|
Settings
|
||||||
</.link>
|
</.link>
|
||||||
<.link href={~p"/users/log_out"} method="delete" class="navbar-item">
|
<.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
|
def items_block(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<%= for {_name, item} <- @items do %>
|
<%= 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">
|
<span class="panel-icon">
|
||||||
<.icon for={item.icon} color="auto" aria-hidden="true" />
|
<.icon for={item.icon} color="auto" aria-hidden="true" />
|
||||||
</span>
|
</span>
|
||||||
<div class="mt-2 ml-2"><%= item.name %></div>
|
<div class="mt-2 ml-2">Nav: <%= item.name %></div>
|
||||||
</.link>
|
</.link>
|
||||||
<% end %>
|
<% end %>
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue