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'} 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>
+3 -2
View File
@@ -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) => {