fix topbar links

This commit is contained in:
shibao 2023-02-26 00:37:07 -05:00
parent 0eafb54266
commit f8a1d88e0e

View File

@ -46,7 +46,7 @@ defmodule LokalWeb.Components.Topbar do
</li> </li>
<li class="mx-2 my-1"> <li class="mx-2 my-1">
<.link <.link
navigate={Routes.user_settings_path(Endpoint, :edit)} href={Routes.user_settings_path(Endpoint, :edit)}
class="text-white text-white hover:underline truncate" class="text-white text-white hover:underline truncate"
> >
<%= @current_user.email %> <%= @current_user.email %>
@ -77,7 +77,7 @@ defmodule LokalWeb.Components.Topbar do
<% else %> <% else %>
<li :if={Accounts.allow_registration?()} class="mx-2 my-1"> <li :if={Accounts.allow_registration?()} class="mx-2 my-1">
<.link <.link
navigate={Routes.user_registration_path(Endpoint, :new)} href={Routes.user_registration_path(Endpoint, :new)}
class="text-white text-white hover:underline truncate" class="text-white text-white hover:underline truncate"
> >
<%= dgettext("actions", "Register") %> <%= dgettext("actions", "Register") %>
@ -85,7 +85,7 @@ defmodule LokalWeb.Components.Topbar do
</li> </li>
<li class="mx-2 my-1"> <li class="mx-2 my-1">
<.link <.link
navigate={Routes.user_session_path(Endpoint, :new)} href={Routes.user_session_path(Endpoint, :new)}
class="text-white text-white hover:underline truncate" class="text-white text-white hover:underline truncate"
> >
<%= dgettext("actions", "Log in") %> <%= dgettext("actions", "Log in") %>