diff --git a/assets/js/app.js b/assets/js/app.js
index fa0eb3a..dcebec6 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -1,5 +1,6 @@
import "phoenix_html"
import {Socket} from "phoenix"
+// import {LiveSocket} from "./phoenix_live_view"
import {LiveSocket} from "phoenix_live_view"
import topbar from "../vendor/topbar"
diff --git a/lib/live_beats_web/live/live_helpers.ex b/lib/live_beats_web/live/live_helpers.ex
index 1c434ec..976f9e1 100644
--- a/lib/live_beats_web/live/live_helpers.ex
+++ b/lib/live_beats_web/live/live_helpers.ex
@@ -9,6 +9,60 @@ defmodule LiveBeatsWeb.LiveHelpers do
Routes.song_index_path(socket, :index, socket.assigns.current_user.username)
end
+ def flash(%{kind: :error} = assigns) do
+ ~H"""
+ <%= if live_flash(@flash, @kind) do %>
+
+
+
+ <.icon name={:check_circle} solid />
+
+
+
+ <%= live_flash(@flash, @kind) %>
+
+
+
+
+
+
+
+
+
+ <% end %>
+ """
+ end
+
+ def flash(%{kind: :info} = assigns) do
+ ~H"""
+ <%= if live_flash(@flash, @kind) do %>
+
+
+
+ <.icon name={:check_circle} solid />
+
+
+
+ <%= live_flash(@flash, @kind) %>
+
+
+
+
+
+
+
+
+
+ <% end %>
+ """
+ end
+
def spinner(assigns) do
~H"""