<%= upload_error_to_string(err) %>
- <% end %> -diff --git a/lib/chiya_web.ex b/lib/chiya_web.ex index 6de6716..6a8b18d 100644 --- a/lib/chiya_web.ex +++ b/lib/chiya_web.ex @@ -58,7 +58,7 @@ defmodule ChiyaWeb do layout: {ChiyaWeb.Layouts, :app} # Import admin components - import ChiyaWeb.AdminComponents + import ChiyaWeb.CoreComponents unquote(html_helpers()) end @@ -69,7 +69,7 @@ defmodule ChiyaWeb do use Phoenix.LiveComponent # Import admin components - import ChiyaWeb.AdminComponents + import ChiyaWeb.CoreComponents unquote(html_helpers()) end @@ -84,7 +84,7 @@ defmodule ChiyaWeb do only: [get_csrf_token: 0, view_module: 1, view_template: 1] # Import admin components - import ChiyaWeb.AdminComponents + import ChiyaWeb.CoreComponents # Include general helpers for rendering HTML unquote(html_helpers()) @@ -112,7 +112,6 @@ defmodule ChiyaWeb do # HTML escaping functionality import Phoenix.HTML # Core UI components and translation - import ChiyaWeb.CoreComponents import ChiyaWeb.Gettext # Shortcut for generating JS commands diff --git a/lib/chiya_web/components/admin_components.ex b/lib/chiya_web/components/admin_components.ex deleted file mode 100644 index f29e041..0000000 --- a/lib/chiya_web/components/admin_components.ex +++ /dev/null @@ -1,126 +0,0 @@ -defmodule ChiyaWeb.AdminComponents do - use Phoenix.Component - - use Phoenix.VerifiedRoutes, - endpoint: ChiyaWeb.Endpoint, - router: ChiyaWeb.Router, - statics: ChiyaWeb.static_paths() - - import ChiyaWeb.CoreComponents - - @doc """ - Renders a horizontal line - """ - def line(assigns) do - ~H""" -
<%= upload_error_to_string(err) %>
- <% end %> -<%= upload_error_to_string(err) %>
+ <% end %> +