Handle toast messages from inside Release component
This commit is contained in:
@@ -71,6 +71,7 @@ defmodule MusicLibraryWeb do
|
||||
def live_component do
|
||||
quote do
|
||||
use Phoenix.LiveComponent
|
||||
import MusicLibraryWeb.Hooks.ShowToast, only: [put_toast!: 2]
|
||||
|
||||
unquote(html_helpers())
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user