Equipment buying and selling complete

This commit is contained in:
2019-06-01 23:02:08 +10:00
parent 7c7e69d4c5
commit 8161ebb512
8 changed files with 294 additions and 72 deletions
+2
View File
@@ -54,6 +54,8 @@ class CombatLog extends React.Component {
<p>{this.state.warning}</p>
</div>
<h1 className='centered'>Combat Log</h1>
<ButtonHeader />
<PagedCombatLog
setWarning={this.setWarning.bind(this)}
+5
View File
@@ -55,11 +55,16 @@ class Equipment extends React.Component {
<p>{this.state.warning}</p>
</div>
<h1 className='centered'>Equipment</h1>
<p className='centered'>Equipment sells for half it's cost!</p>
<p className='centered'>Scientists: {this.props.scientists} - Gold: {this.props.gold}</p>
<EquipmentPanel
getFetch={this.getFetch.bind(this)}
setWarning={this.setWarning.bind(this)}
scientists={this.props.scientists}
gold={this.props.gold}
onSuccess={ () => this.sendRequest('/profilerequest', {username: this.props.username}) }
/>
</div>
</div>