Disabled spy button for now
This commit is contained in:
@@ -256,6 +256,7 @@ class Profile extends React.Component {
|
|||||||
pendingStatus={'spying'}
|
pendingStatus={'spying'}
|
||||||
pendingMsg={'Your spies are spying on'}
|
pendingMsg={'Your spies are spying on'}
|
||||||
parseUnits={(json) => json.spies}
|
parseUnits={(json) => json.spies}
|
||||||
|
disabled={true}
|
||||||
>Send Spies</AttackButton>
|
>Send Spies</AttackButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class AttackButton extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
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,
|
className: PropTypes.string,
|
||||||
style: PropTypes.object,
|
style: PropTypes.object,
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
setWarning: PropTypes.func
|
setWarning: PropTypes.func,
|
||||||
|
disabled: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapStoreToProps = (store) => {
|
const mapStoreToProps = (store) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user