Skip to content

Commit

Permalink
fix compiler error/warnings on LiveView 0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
mphfish committed Nov 2, 2021
1 parent 435540b commit 4483bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/components/confirm_modal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ defmodule CrunchBerry.Components.ConfirmModal do
<div class="relative mx-auto my-10 opacity-100 w-11/12 md:max-w-md rounded overflow-y-auto">
<div class="relative bg-white shadow-lg rounded-md text-gray-900 z-20 flow-root">
<div>
<button phx-click={@cancel_event} aria_hidden="true" class="text-gray-400 text-2xl absolute top-0 right-0 py-1 px-3 rounded-full cursor-pointer hover:no-underline hover:text-black duration-50" title: "Close">&times;</button>
<button phx-click={@cancel_event} aria_hidden="true" class="text-gray-400 text-2xl absolute top-0 right-0 py-1 px-3 rounded-full cursor-pointer hover:no-underline hover:text-black duration-50" title="Close">&times;</button>
</div>
<div class="w-full max-w-lg p-2">
<h2 class="font-bold block w-full text-center text-grey-darkest mb-2 pt-4"><%= @title %></h2>
Expand Down
2 changes: 1 addition & 1 deletion lib/components/modal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule CrunchBerry.Components.Modal do
<div>
<%= live_patch raw("&times;"), to: @return_to, aria_hidden: true, class: "text-gray-400 text-2xl absolute top-0 right-0 py-1 px-3 rounded-full cursor-pointer hover:no-underline hover:text-black duration-50", title: "Close" %>
</div>
<%= live_component @socket, @component, @opts %>
<%= live_component @component, @opts %>
</div>
</div>
</div>
Expand Down

0 comments on commit 4483bb7

Please sign in to comment.