Skip to content

Commit

Permalink
Add 'Add' buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Oct 13, 2023
1 parent 3139dc5 commit e47a34d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/components/ManaCalculator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,20 @@ export default function ManaCalculator() {
/>
</div>
))}
<button
className='button button--danger col--4'
onClick={() => {
state.validators.push({
lockedStake: 100,
delegatedStake: 0,
performanceFactor: 1.0,
fixedCost: 0.0,
});
setState({ ...state });
}}
>
+
</button>
</div>
</Details>
</div>
Expand Down Expand Up @@ -502,6 +516,20 @@ export default function ManaCalculator() {
/>
</div>
))}
<button
className='button button--danger col--4'
onClick={() => {
state.validators.push({
lockedStake: 100,
delegatedStake: 0,
performanceFactor: 1.0,
fixedCost: 0.0,
});
setState({ ...state });
}}
>
+
</button>
</div>
</Details>
<div className='row'>
Expand Down

0 comments on commit e47a34d

Please sign in to comment.