Disabled spy button for now
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user