Skip to content

Commit

Permalink
refactor: adpatations to the new icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipeR13 committed Sep 15, 2024
1 parent ea428f6 commit 5fb3775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions lib/atomic_web/components/activity.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,12 @@ defmodule AtomicWeb.Components.Activity do
<span class="sr-only">starting in</span>
</span>
</span>
<span class="inline-flex items-center text-sm">
<span class={[
"inline-flex items-center text-sm",
color_class(@activity.enrolled, @activity.maximum_entries)
]}>
<span class="inline-flex space-x-2">
<.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" />
<span class="font-medium text-gray-900"><%= @activity.enrolled %>/<%= @activity.maximum_entries %></span>
<span class="sr-only text-zinc-400">enrollments</span>
</span>
Expand Down
4 changes: 2 additions & 2 deletions lib/atomic_web/components/unauthenticated.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule AtomicWeb.Components.Unauthenticated do
def unauthenticated_state(assigns) do
~H"""
<div id={@id} class="text-center">
<.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" />
<h3 class="mt-2 text-sm font-semibold text-zinc-900">You are not authenticated</h3>
<p class="mt-1 text-sm text-zinc-500">Please sign in to view this content.</p>
<div class="mt-4">
Expand All @@ -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"
>
<span class="mr-2 text-sm font-semibold leading-6" aria-hidden="true">Sign in</span>
<.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" />
</.link>
</div>
</div>
Expand Down

0 comments on commit 5fb3775

Please sign in to comment.