From 8735240189b9a5588b700a967b7483bfa16b4447 Mon Sep 17 00:00:00 2001 From: jojocoelho Date: Tue, 24 Sep 2024 23:04:44 +0100 Subject: [PATCH] fix: format --- .../live/announcement_live/components/announcement_card.ex | 4 +--- lib/atomic_web/live/announcement_live/index.ex | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/atomic_web/live/announcement_live/components/announcement_card.ex b/lib/atomic_web/live/announcement_live/components/announcement_card.ex index 1904afeb..30a32246 100644 --- a/lib/atomic_web/live/announcement_live/components/announcement_card.ex +++ b/lib/atomic_web/live/announcement_live/components/announcement_card.ex @@ -2,8 +2,6 @@ defmodule AtomicWeb.AnnouncementLive.Components.AnnouncementCard do @moduledoc false use AtomicWeb, :component - @assigns [:announcement] - def announcement_card(assigns) do ~H"""
@@ -25,7 +23,7 @@ defmodule AtomicWeb.AnnouncementLive.Components.AnnouncementCard do
<%= if @announcement.image do %> -
+
Announcement Image
<% end %> diff --git a/lib/atomic_web/live/announcement_live/index.ex b/lib/atomic_web/live/announcement_live/index.ex index df5a9ac2..3c452f24 100644 --- a/lib/atomic_web/live/announcement_live/index.ex +++ b/lib/atomic_web/live/announcement_live/index.ex @@ -1,7 +1,7 @@ defmodule AtomicWeb.AnnouncementLive.Index do use AtomicWeb, :live_view - import AtomicWeb.Components.{Announcement, Button, Empty, Pagination, Tabs} + import AtomicWeb.Components.{Button, Empty, Pagination, Tabs} import AtomicWeb.AnnouncementLive.Components.AnnouncementCard alias Atomic.Accounts