code clean up

This commit is contained in:
tarafanlin 2021-03-31 12:21:02 -07:00
parent aa45067c69
commit e1f3c0f200

View File

@ -419,11 +419,15 @@ export default class DataView extends React.Component {
}; };
_handleCheckBoxMouseEnter = (i) => { _handleCheckBoxMouseEnter = (i) => {
this.props.isOwner && this.setState({ hover: i }); if (this.props.isOwner) {
this.setState({ hover: i });
}
}; };
_handleCheckBoxMouseLeave = (i) => { _handleCheckBoxMouseLeave = (i) => {
this.props.isOwner && this.setState({ hover: null }); if (this.props.isOwner) {
this.setState({ hover: null });
}
}; };
_handleCopy = (e, value) => { _handleCopy = (e, value) => {