From 5fb377583097f22804b9035001c5e9b0eb58eae8 Mon Sep 17 00:00:00 2001 From: FilipeR13 Date: Sun, 15 Sep 2024 16:25:01 +0100 Subject: [PATCH] refactor: adpatations to the new icon component --- lib/atomic_web/components/activity.ex | 13 +++++-------- lib/atomic_web/components/unauthenticated.ex | 4 ++-- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/atomic_web/components/activity.ex b/lib/atomic_web/components/activity.ex index 2de46afe..443198ea 100644 --- a/lib/atomic_web/components/activity.ex +++ b/lib/atomic_web/components/activity.ex @@ -51,15 +51,12 @@ defmodule AtomicWeb.Components.Activity do starting in - + - <.icon - name="hero-user-group-solid" - class={[ - "h-5 w-5", - color_class(@activity.enrolled, @activity.maximum_entries) - ]} - /> + <.icon name="hero-user-group-solid" class="size-5" /> <%= @activity.enrolled %>/<%= @activity.maximum_entries %> enrollments diff --git a/lib/atomic_web/components/unauthenticated.ex b/lib/atomic_web/components/unauthenticated.ex index e148b028..cc12c595 100644 --- a/lib/atomic_web/components/unauthenticated.ex +++ b/lib/atomic_web/components/unauthenticated.ex @@ -10,7 +10,7 @@ defmodule AtomicWeb.Components.Unauthenticated do def unauthenticated_state(assigns) do ~H"""
- <.icon name={:user_circle} class="mx-auto h-12 w-12 text-zinc-400" /> + <.icon name="hero-user-circle" class="mx-auto h-12 w-12 text-zinc-400" />

You are not authenticated

Please sign in to view this content.

@@ -19,7 +19,7 @@ defmodule AtomicWeb.Components.Unauthenticated do class="inline-flex items-center rounded-md bg-orange-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-orange-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-orange-500" > - <.icon name={:arrow_right_end_on_rectangle} solid class="h-5 w-5" /> + <.icon name="hero-arrow-right-end-on-rectangle-solid" class="size-5" />