update components and templates to heex
This commit is contained in:
		| @@ -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"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user