Some further cleanup of presentational stuff

This commit is contained in:
Franc Camps-Febrer
2018-11-27 13:15:23 -05:00
parent 20051db90a
commit f345b76e57
8 changed files with 33 additions and 68 deletions

View File

@@ -5,7 +5,7 @@ import {
import hash from 'object-hash';
import 'leaflet-polylinedecorator';
export default function(newApp, ui) {
export default function(newApp, ui, methods) {
let svg, g, defs;
let categoryColorGroups = {};
@@ -22,9 +22,9 @@ export default function(newApp, ui) {
views: Object.assign({}, newApp.views),
}
const getCategoryGroup = newApp.getCategoryGroup;
const getCategoryGroupColor = newApp.getCategoryGroupColor;
const select = newApp.select;
const getCategoryGroup = methods.getCategoryGroup;
const getCategoryGroupColor = methods.getCategoryGroupColor;
const select = methods.select;
const groupColors = ui.groupColors;
const narrativeProps = ui.narratives;