Skip to content

Commit

Permalink
Render the submit button inside form
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Jan 10, 2024
1 parent 96e87fc commit 970f715
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions dapp/src/components/Modals/Staking/StakeForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,19 @@ function StakeForm({ goNext }: ModalStep) {
)

return (
<>
<TokenAmountForm
formId={FORM_ID}
tokenBalanceInputPlaceholder="BTC"
currency={BITCOIN}
tokenBalance={btcAccount?.balance.toString() ?? "0"}
minTokenAmount={BITCOIN_MIN_AMOUNT}
onSubmitForm={handleSubmitForm}
>
<Details currency={BITCOIN} />
</TokenAmountForm>
<TokenAmountForm
formId={FORM_ID}
tokenBalanceInputPlaceholder="BTC"
currency={BITCOIN}
tokenBalance={btcAccount?.balance.toString() ?? "0"}
minTokenAmount={BITCOIN_MIN_AMOUNT}
onSubmitForm={handleSubmitForm}
>
<Details currency={BITCOIN} />
<Button type="submit" form={FORM_ID} size="lg" width="100%" mt={4}>
Stake
</Button>
</>
</TokenAmountForm>
)
}

Expand Down

0 comments on commit 970f715

Please sign in to comment.