Skip to content

Commit

Permalink
fix: update html
Browse files Browse the repository at this point in the history
  • Loading branch information
berviantoleo authored Aug 8, 2024
1 parent 4652967 commit 4aedd09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/elixir_exploration_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ defmodule ElixirExplorationWeb 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 basic rendering functionality (render, render_layout, etc)
import Phoenix.View
Expand Down
4 changes: 3 additions & 1 deletion lib/elixir_exploration_web/views/error_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ defmodule ElixirExplorationWeb.ErrorHelpers do
Conveniences for translating and building error messages.
"""

use Phoenix.HTML
import Phoenix.HTML

Check warning on line 6 in lib/elixir_exploration_web/views/error_helpers.ex

View workflow job for this annotation

GitHub Actions / Build and test (24, 1.14)

unused import Phoenix.HTML

Check warning on line 6 in lib/elixir_exploration_web/views/error_helpers.ex

View workflow job for this annotation

GitHub Actions / Build and test (25, 1.14)

unused import Phoenix.HTML
import Phoenix.HTML.Form
use PhoenixHTMLHelpers

@doc """
Generates tag for inlined form input errors.
Expand Down
1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ defmodule ElixirExploration.MixProject do
{:floki, ">= 0.32.1", only: :test},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 4.1.1"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_live_reload, "~> 1.3", only: :dev},
{:phoenix_live_dashboard, "~> 0.7"},
{:phoenix_view, "~> 2.0"},
Expand Down

0 comments on commit 4aedd09

Please sign in to comment.