Fix the navbar's link for the logo to redirect with the link component.
This commit is contained in:
@@ -13,7 +13,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do
|
||||
~H"""
|
||||
<nav class="bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800">
|
||||
<div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl">
|
||||
<a href={~p"/"} class="flex items-center">
|
||||
<.link patch={~p"/books"} class="flex items-center">
|
||||
<svg
|
||||
class="w-6 h-6 text-gray-800 dark:text-white"
|
||||
aria-hidden="true"
|
||||
@@ -33,7 +33,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do
|
||||
</svg>
|
||||
|
||||
<span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white">DBI</span>
|
||||
</a>
|
||||
</.link>
|
||||
<div class="flex items-center lg:order-2">
|
||||
<.user_info current_user={@current_user} />
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user