diff --git a/app/views/admin/settings/_map_form.html.erb b/app/components/admin/settings/map_form_component.html.erb similarity index 100% rename from app/views/admin/settings/_map_form.html.erb rename to app/components/admin/settings/map_form_component.html.erb diff --git a/app/components/admin/settings/map_form_component.rb b/app/components/admin/settings/map_form_component.rb new file mode 100644 index 000000000..29e5f5372 --- /dev/null +++ b/app/components/admin/settings/map_form_component.rb @@ -0,0 +1,2 @@ +class Admin::Settings::MapFormComponent < ApplicationComponent +end diff --git a/app/views/admin/settings/_map_configuration_tab.html.erb b/app/views/admin/settings/_map_configuration_tab.html.erb index e4b324e5d..9f0d4ab71 100644 --- a/app/views/admin/settings/_map_configuration_tab.html.erb +++ b/app/views/admin/settings/_map_configuration_tab.html.erb @@ -5,7 +5,7 @@

<%= t("admin.settings.index.map.help") %>

- <%= render "map_form" %> + <%= render Admin::Settings::MapFormComponent.new %> <% else %>
<%= t("admin.settings.index.map.how_to_enable") %>