update components and templates to heex

This commit is contained in:
2022-01-22 15:15:23 -05:00
parent 094e214a55
commit 26b47ab060
15 changed files with 314 additions and 272 deletions

View File

@ -1,10 +1,12 @@
<main class="container min-w-full min-h-full">
<header>
<%= live_component CanneryWeb.Live.Component.Topbar, current_user: assigns[:current_user] %>
<CanneryWeb.Component.Topbar.topbar
current_user={assigns[:current_user]}>
</CanneryWeb.Component.Topbar.topbar>
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
<%= if live_flash(@flash, :info) do %>
<%= if @flash && @flash |> Map.has_key?(:info) do %>
<p class="alert alert-info" role="alert"
phx-click="lv:clear-flash"
phx-value-key="info">
@ -12,7 +14,7 @@
</p>
<% end %>
<%= if live_flash(@flash, :error) do %>
<%= if @flash && @flash |> Map.has_key?(:error) do %>
<p class="alert alert-danger" role="alert"
phx-click="lv:clear-flash"
phx-value-key="error">