Navigate to artist page instead of patching

This commit is contained in:
Claudio Ortolina
2024-12-03 00:15:24 +00:00
parent ccefc6e697
commit d1190e31f9
5 changed files with 5 additions and 5 deletions
@@ -51,7 +51,7 @@
<.link
:for={artist <- record.artists}
class="text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/artists/#{artist.musicbrainz_id}"}
navigate={~p"/artists/#{artist.musicbrainz_id}"}
>
{artist.name}
</.link>
@@ -12,7 +12,7 @@
<.link
:for={artist <- @record.artists}
class="text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/artists/#{artist.musicbrainz_id}"}
navigate={~p"/artists/#{artist.musicbrainz_id}"}
>
{artist.name}
</.link>
@@ -29,7 +29,7 @@ defmodule MusicLibraryWeb.StatsLive.DataComponents do
<.link
:for={artist <- @record.artists}
class="text-sm md:text-base lg:text-2xl text-zinc-900 hover:text-zinc-500 dark:text-zinc-300 dark:hover:text-zinc-200"
patch={~p"/artists/#{artist.musicbrainz_id}"}
navigate={~p"/artists/#{artist.musicbrainz_id}"}
>
{artist.name}
</.link>
@@ -51,7 +51,7 @@
<.link
:for={artist <- record.artists}
class="text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/artists/#{artist.musicbrainz_id}"}
navigate={~p"/artists/#{artist.musicbrainz_id}"}
>
{artist.name}
</.link>
@@ -12,7 +12,7 @@
<.link
:for={artist <- @record.artists}
class="text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/artists/#{artist.musicbrainz_id}"}
navigate={~p"/artists/#{artist.musicbrainz_id}"}
>
{artist.name}
</.link>