Skip to content

Commit

Permalink
compatible with phoenix_html 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermanlangner committed Apr 26, 2024
1 parent a4b3c87 commit 691fa40
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 33 deletions.
4 changes: 3 additions & 1 deletion lib/exq_ui_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ defmodule ExqUIWeb do
defp view_helpers do
quote do
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
import Phoenix.HTML
import Phoenix.HTML.Form
use PhoenixHTMLHelpers

import Phoenix.Component
# Import LiveView helpers (live_render, live_component, live_patch, etc)
Expand Down
3 changes: 2 additions & 1 deletion lib/exq_ui_web/views/helpers.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ExqUIWeb.Helpers do
@moduledoc false
use Phoenix.HTML

use PhoenixHTMLHelpers
import Phoenix.LiveView.Helpers

def nav_link(socket, name, link) do
Expand Down
1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ defmodule ExqUI.MixProject do
{:phoenix_live_view, "~> 0.18"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_view, "~> 2.0"},
{:phoenix_html_helpers, "~> 1.0"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:redix, ">= 0.9.0"},
Expand Down
Loading

0 comments on commit 691fa40

Please sign in to comment.