Fix/clean errors (#191)

* clean dev errors

* add check command

* yarn -> npm in travis

* fix all warnings

* fix base test

* 💄
This commit is contained in:
Lachlan Kermode
2021-01-17 18:16:28 +13:00
committed by GitHub
parent 1f20fd68ec
commit 1bbcd57e5e
35 changed files with 229 additions and 158 deletions

View File

@@ -171,26 +171,30 @@ function MapEvents({
}, false);
return (
<g
className={`location-event ${narrative ? "no-hover" : ""}`}
transform={`translate(${x}, ${y})`}
onClick={(e) => handleEventSelect(e, location)}
>
{features.COLOR_BY_ASSOCIATION
? renderLocationSlicesByAssociation(location)
: null}
{features.COLOR_BY_CATEGORY
? renderLocationSlicesByCategory(location)
: null}
{extraRender ? extraRender() : null}
{isSelected ? null : renderBorder()}
</g>
<svg>
<g
className={`location-event ${narrative ? "no-hover" : ""}`}
transform={`translate(${x}, ${y})`}
onClick={(e) => handleEventSelect(e, location)}
>
{features.COLOR_BY_ASSOCIATION
? renderLocationSlicesByAssociation(location)
: null}
{features.COLOR_BY_CATEGORY
? renderLocationSlicesByCategory(location)
: null}
{extraRender ? extraRender() : null}
{isSelected ? null : renderBorder()}
</g>
</svg>
);
}
return (
<Portal node={svg}>
<g className="event-locations">{locations.map(renderLocation)}</g>
<svg>
<g className="event-locations">{locations.map(renderLocation)}</g>
</svg>
</Portal>
);
}