diff --git a/lib/components/modal.ex b/lib/components/modal.ex index c41a971..55ac51a 100644 --- a/lib/components/modal.ex +++ b/lib/components/modal.ex @@ -52,12 +52,14 @@ defmodule CrunchBerry.Components.Modal do
<%= if assigns[:return_to] do %> - <%= live_patch(raw("×"), - to: @return_to, - aria_hidden: true, - class: @classes[:cancel_icon], - title: "Close" - ) %> + <.link + patch={@return_to} + aria-hidden="true" + class={@classes[:cancel_icon]} + title="Close" + > + <%= raw("×") %> + <% else %>