|
@@ -115,12 +115,13 @@ class Project extends PureComponent {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
toggleInfo() {
|
|
toggleInfo() {
|
|
|
|
+ if (!this.props.data) return;
|
|
this.setState({
|
|
this.setState({
|
|
visible: !this.state.visible,
|
|
visible: !this.state.visible,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
render() {
|
|
render() {
|
|
- const { position, icon, title, showLushu = false } = this.props;
|
|
|
|
|
|
+ const { position, icon, title, showLushu = false, data } = this.props;
|
|
const { start, visible, flash } = this.state;
|
|
const { start, visible, flash } = this.state;
|
|
if (start) return null;
|
|
if (start) return null;
|
|
return (
|
|
return (
|
|
@@ -136,7 +137,8 @@ class Project extends PureComponent {
|
|
<InfoBox
|
|
<InfoBox
|
|
showLushu={showLushu}
|
|
showLushu={showLushu}
|
|
onClick={() => this.startLushu()}
|
|
onClick={() => this.startLushu()}
|
|
- dataPump={dataPump}
|
|
|
|
|
|
+ title={title}
|
|
|
|
+ dataPump={data}
|
|
/>
|
|
/>
|
|
)}
|
|
)}
|
|
</CustomOverlay>
|
|
</CustomOverlay>
|