[UNSTABLE] Fix new type errors (probably related to strict: true in latest tsc)

This commit is contained in:
Rick Carlino 2018-05-14 15:47:45 -05:00
parent 3c054d1b7e
commit 325fc167c0

View file

@ -25,7 +25,9 @@ export function PlantLayer(props: PlantLayerProps) {
.filter(c => !!c.body.spread)
.map(c => cropSpreadDict[c.body.slug] = c.body.spread);
const maybeNoPointer = () => {
// TODO: This has a high similarity to code in `tool_slot_layers.tsx`. DRY up.
// -RC 14 May 18
const maybeNoPointer = (): React.SVGProps<SVGGElement>["style"] => {
switch (getMode()) {
case Mode.boxSelect:
case Mode.clickToAdd: