use image path generator for map icons

This commit is contained in:
Andy Brett
2021-02-15 14:21:20 -08:00
parent 897a0c7779
commit f8239ed3ed

View File

@@ -123,13 +123,13 @@ module Api
# Map svg icons.
def icon
icons = {
hub: "/assets/map_005-hub.svg",
hub_profile: "/assets/map_006-hub-profile.svg",
producer_hub: "/assets/map_005-hub.svg",
producer_shop: "/assets/map_003-producer-shop.svg",
producer: "/assets/map_001-producer-only.svg",
hub: "map_005-hub.svg",
hub_profile: "map_006-hub-profile.svg",
producer_hub: "map_005-hub.svg",
producer_shop: "map_003-producer-shop.svg",
producer: "map_001-producer-only.svg",
}
icons[enterprise.category]
ImagePathGenerator.call(icons[enterprise.category])
end
# Choose regular icon font for enterprises.