Migrate live_patch to .link patch

Hi,

your syntax is incorrect, it should be:

<.link
  patch={@return_to}
  id="close"
  class="phx-modal-close"
  phx-click={hide_modal()}
>✖</.link>

And to include and merge your if/else condition:

<.link
  {if @return_to, do: [patch: @return_to], else: [href: "#"]},
  id="close"
  class="phx-modal-close"
  phx-click={hide_modal()}
>✖</.link>