diff --git a/lib/shift73k_web.ex b/lib/shift73k_web.ex index 0eaba35a..e5193f6d 100644 --- a/lib/shift73k_web.ex +++ b/lib/shift73k_web.ex @@ -46,7 +46,7 @@ defmodule Shift73kWeb do def live_view do quote do use Phoenix.LiveView, - layout: {Shift73kWeb.LayoutView, "live.html"} + layout: {Shift73kWeb.LayoutView, :live} unquote(view_helpers()) import Shift73kWeb.LiveHelpers @@ -100,7 +100,7 @@ defmodule Shift73kWeb do use Phoenix.HTML # Import LiveView helpers (live_render, live_component, live_patch, etc) - import Phoenix.LiveView.Helpers + import Phoenix.Component # Import basic rendering functionality (render, render_layout, etc) import Phoenix.View diff --git a/lib/shift73k_web/live/live_helpers.ex b/lib/shift73k_web/live/live_helpers.ex index 36c33170..3afad08b 100644 --- a/lib/shift73k_web/live/live_helpers.ex +++ b/lib/shift73k_web/live/live_helpers.ex @@ -1,5 +1,6 @@ defmodule Shift73kWeb.LiveHelpers do import Phoenix.LiveView + import Phoenix.Component alias Shift73k.Accounts alias Shift73k.Accounts.User diff --git a/lib/shift73k_web/live/shift_template_live/form_component.html.heex b/lib/shift73k_web/live/shift_template_live/form_component.html.heex index 66f944d9..ca4c00a1 100644 --- a/lib/shift73k_web/live/shift_template_live/form_component.html.heex +++ b/lib/shift73k_web/live/shift_template_live/form_component.html.heex @@ -1,6 +1,6 @@
- <.form let={f} for={@changeset} phx-change="validate" phx-submit="save" phx-target={@myself} id="shift_template-form"> + <.form :let={f} for={@changeset} phx-change="validate" phx-submit="save" phx-target={@myself} id="shift_template-form">