fix sleeve memory bug

This commit is contained in:
Olivier Gagnon
2021-09-08 23:47:34 -04:00
parent bada8a5f39
commit 2a13db39c7
360 changed files with 5424 additions and 15764 deletions
@@ -22,10 +22,7 @@ interface IState {
amt: number;
}
export class CovenantSleeveMemoryUpgrade extends React.Component<
IProps,
IState
> {
export class CovenantSleeveMemoryUpgrade extends React.Component<IProps, IState> {
constructor(props: IProps) {
super(props);
@@ -88,8 +85,7 @@ export class CovenantSleeveMemoryUpgrade extends React.Component<
} else {
purchaseBtnContent = (
<>
Purchase {this.state.amt} memory -{" "}
<Money money={cost} player={this.props.p} />?
Purchase {this.state.amt} memory - <Money money={cost} player={this.props.p} />?
</>
);
}
@@ -100,14 +96,11 @@ export class CovenantSleeveMemoryUpgrade extends React.Component<
<u>Upgrade Memory</u>
</h2>
<p>
Purchase a memory upgrade for your sleeve. Note that a sleeve's max
memory is 100 (current:{" "}
Purchase a memory upgrade for your sleeve. Note that a sleeve's max memory is 100 (current:{" "}
{numeralWrapper.formatSleeveMemory(this.props.sleeve.memory)})
</p>
<label htmlFor={inputId}>
Amount of memory to purchase (must be an integer):
</label>
<label htmlFor={inputId}>Amount of memory to purchase (must be an integer):</label>
<input
className="text-input"
id={inputId}
@@ -116,11 +109,7 @@ export class CovenantSleeveMemoryUpgrade extends React.Component<
value={this.state.amt}
/>
<br />
<StdButton
disabled={purchaseBtnDisabled}
onClick={this.purchaseMemory}
text={purchaseBtnContent}
/>
<StdButton disabled={purchaseBtnDisabled} onClick={this.purchaseMemory} text={purchaseBtnContent} />
</div>
);
}