and helpers reversion

fe1bf9b · gmorell · 2023-06-15 05:33

6 files +5 -5

Files changed

modified apps/room_sanctum/lib/room_sanctum_web/live/live_helpers.ex
+5 −5
@@ -65,7 +65,7 @@ defmodule RoomSanctumWeb.LiveHelpers do
65 65 |> assign_new(:what, fn -> "Poop" end)
66 66
67 67 ~H"""
68 − <.link patch={@to} class= "btn gap-2 float-right">
68 + <.link patch={@to} class="btn gap-2 float-right">
69 69 <i class={"fa-solid #{@icon}"}></i>
70 70
71 71 <%= adj(@what) %> <%= @what %>
@@ -81,13 +81,13 @@ defmodule RoomSanctumWeb.LiveHelpers do
81 81 ~H"""
82 82 <%= case @function do %>
83 83 <% :live_patch -> %>
84 − <%= live_patch to: @to, class: "btn btn-square btn-xs" do %>
84 + <.link patch={@to} class="btn btn-square btn-xs">
85 85 <i class={"fa-solid #{@icon}"}></i>
86 − <% end %>
86 + </.link>
87 87 <% :live_redirect -> %>
88 − <%= live_redirect to: @to, class: "btn btn-square btn-xs" do %>
88 + <.link navigate={@to} class="btn btn-square btn-xs">
89 89 <i class={"fa-solid #{@icon}"}></i>
90 − <% end %>
90 + </.link>
91 91 <% end %>
92 92 """
93 93 end

Parents: c5c5fce