From c0f039f2ee1b5d1151bf5ad521cbc1a7c2f93ae5 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 1 Nov 2024 09:30:06 +0000 Subject: [PATCH] Use icon instead of custom svg in options menu --- .../components/core_components.ex | 3 ++- .../live/record_live/import_component.ex | 13 +++++------ .../live/record_live/index.html.heex | 13 +++++------ .../live/wishlist_live/index.html.heex | 13 +++++------ priv/gettext/default.pot | 22 +++++++++---------- 5 files changed, 28 insertions(+), 36 deletions(-) diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index 6dc24c0d..636daf64 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -624,10 +624,11 @@ defmodule MusicLibraryWeb.CoreComponents do """ attr :name, :string, required: true attr :class, :string, default: nil + attr :rest, :global def icon(%{name: "hero-" <> _} = assigns) do ~H""" - + """ end diff --git a/lib/music_library_web/live/record_live/import_component.ex b/lib/music_library_web/live/record_live/import_component.ex index fd975c36..a3161e80 100644 --- a/lib/music_library_web/live/record_live/import_component.ex +++ b/lib/music_library_web/live/record_live/import_component.ex @@ -67,22 +67,19 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do