remove info from vbox
This commit is contained in:
parent
a6cd2a3e0a
commit
f961f8485d
@ -21,7 +21,6 @@ const addState = connect(
|
|||||||
itemInfo,
|
itemInfo,
|
||||||
itemUnequip,
|
itemUnequip,
|
||||||
navInstance,
|
navInstance,
|
||||||
info,
|
|
||||||
tutorial,
|
tutorial,
|
||||||
} = state;
|
} = state;
|
||||||
|
|
||||||
@ -60,7 +59,6 @@ const addState = connect(
|
|||||||
sendItemUnequip,
|
sendItemUnequip,
|
||||||
navInstance,
|
navInstance,
|
||||||
tutorial,
|
tutorial,
|
||||||
info,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -104,7 +102,6 @@ class Vbox extends preact.Component {
|
|||||||
if (newProps.reclaiming !== this.props.reclaiming) return true;
|
if (newProps.reclaiming !== this.props.reclaiming) return true;
|
||||||
if (newProps.navInstance !== this.props.navInstance) return true;
|
if (newProps.navInstance !== this.props.navInstance) return true;
|
||||||
if (newProps.tutorial !== this.props.tutorial) return true;
|
if (newProps.tutorial !== this.props.tutorial) return true;
|
||||||
if (newProps.info !== this.props.info) return true;
|
|
||||||
if (newProps.vboxSelected !== this.props.vboxSelected) return true;
|
if (newProps.vboxSelected !== this.props.vboxSelected) return true;
|
||||||
if (newProps.player !== this.props.player) return true;
|
if (newProps.player !== this.props.player) return true;
|
||||||
if (newProps.instance !== this.props.instance) return true;
|
if (newProps.instance !== this.props.instance) return true;
|
||||||
@ -120,7 +117,6 @@ class Vbox extends preact.Component {
|
|||||||
reclaiming,
|
reclaiming,
|
||||||
tutorial,
|
tutorial,
|
||||||
navInstance,
|
navInstance,
|
||||||
info,
|
|
||||||
vboxSelected,
|
vboxSelected,
|
||||||
instance,
|
instance,
|
||||||
|
|
||||||
@ -166,7 +162,7 @@ class Vbox extends preact.Component {
|
|||||||
const base = combiner.find(c => !['Red', 'Blue', 'Green'].includes(vbox.bound[c]));
|
const base = combiner.find(c => !['Red', 'Blue', 'Green'].includes(vbox.bound[c]));
|
||||||
if (base || base === 0) return true;
|
if (base || base === 0) return true;
|
||||||
}
|
}
|
||||||
if (info !== v) setInfo(v);
|
setInfo(v);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -440,7 +436,6 @@ class Vbox extends preact.Component {
|
|||||||
//
|
//
|
||||||
function hoverInfo(e, newInfo) {
|
function hoverInfo(e, newInfo) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (info === newInfo) return true;
|
|
||||||
return setInfo(newInfo);
|
return setInfo(newInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user