Disabled spy button for now

This commit is contained in:
2019-06-04 13:08:47 +10:00
parent eb9c42ca56
commit a9e6c88f45
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -256,6 +256,7 @@ class Profile extends React.Component {
pendingStatus={'spying'}
pendingMsg={'Your spies are spying on'}
parseUnits={(json) => json.spies}
disabled={true}
>Send Spies</AttackButton>
</div>
+3 -2
View File
@@ -28,7 +28,7 @@ class AttackButton extends React.Component {
};
return (
<button className={this.props.className} style={this.props.style} onClick={onClick} disabled={!this.state.units}>{this.props.children}</button>
<button className={this.props.className} style={this.props.style} onClick={onClick} disabled={this.props.disabled || !this.state.units}>{this.props.children}</button>
);
}
}
@@ -86,7 +86,8 @@ AttackButton.propTypes = {
className: PropTypes.string,
style: PropTypes.object,
onClick: PropTypes.func,
setWarning: PropTypes.func
setWarning: PropTypes.func,
disabled: PropTypes.bool
};
const mapStoreToProps = (store) => {