Use render_map to render the map component
This is done for consistency. We always use `render_map`, but forgot to
do the same in commit 529357c98.
This commit is contained in:
@@ -34,5 +34,5 @@
|
|||||||
<h3><%= t("admin.geozones.index.geojson_map") %></h3>
|
<h3><%= t("admin.geozones.index.geojson_map") %></h3>
|
||||||
<p class="help-text"><%= t("admin.geozones.index.geojson_map_help") %></p>
|
<p class="help-text"><%= t("admin.geozones.index.geojson_map_help") %></p>
|
||||||
|
|
||||||
<%= render Shared::MapLocationComponent.new(nil, geozones_data: geozones_data) %>
|
<%= render_map(nil, geozones_data: geozones_data) %>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
class Admin::Geozones::IndexComponent < ApplicationComponent
|
class Admin::Geozones::IndexComponent < ApplicationComponent
|
||||||
include Header
|
include Header
|
||||||
attr_reader :geozones
|
attr_reader :geozones
|
||||||
|
use_helpers :render_map
|
||||||
|
|
||||||
def initialize(geozones)
|
def initialize(geozones)
|
||||||
@geozones = geozones
|
@geozones = geozones
|
||||||
|
|||||||
Reference in New Issue
Block a user