defmodule LiveBeatsWeb.LiveHelpers do import Phoenix.LiveView import Phoenix.LiveView.Helpers alias LiveBeatsWeb.Router.Helpers, as: Routes alias Phoenix.LiveView.JS def home_path(socket) 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 %>
<%= live_flash(@flash, @kind) %>
<%= live_flash(@flash, @kind) %>
<%= render_slot(@inner_block) %>
<%= col.label %> | <% end %>
---|
<%= render_slot(col, row) %>
|
<% end %>
<%= col.label %> | <% end %>
---|