Skip to content

Commit

Permalink
fix: disable input fields on Create Invoice getAlby#1659
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavgarg237 committed Oct 25, 2022
1 parent a13b7ee commit 372bc19
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions src/app/screens/Receive/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,39 +213,41 @@ function Receive() {
createInvoice();
}}
>
<div className="mb-4">
<DualCurrencyField
id="amount"
min={0}
label={t("amount.label")}
placeholder={t("amount.placeholder")}
fiatValue={fiatAmount}
onChange={handleChange}
autoFocus
/>
</div>

<div className="mb-4">
<TextField
id="description"
label={t("description.label")}
placeholder={t("description.placeholder")}
onChange={handleChange}
/>
</div>
<fieldset disabled={loading}>
<div className="mb-4">
<DualCurrencyField
id="amount"
min={0}
label={t("amount.label")}
placeholder={t("amount.placeholder")}
fiatValue={fiatAmount}
onChange={handleChange}
autoFocus
/>
</div>

<div className="text-center mb-4">
<div className="mb-4">
<Button
type="submit"
label={t("actions.create_invoice")}
fullWidth
primary
loading={loading}
disabled={loading}
<TextField
id="description"
label={t("description.label")}
placeholder={t("description.placeholder")}
onChange={handleChange}
/>
</div>
</div>

<div className="text-center mb-4">
<div className="mb-4">
<Button
type="submit"
label={t("actions.create_invoice")}
fullWidth
primary
loading={loading}
disabled={loading}
/>
</div>
</div>
</fieldset>
</form>
)}
</div>
Expand Down

0 comments on commit 372bc19

Please sign in to comment.