Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update token withdrawal UI #272

Merged
merged 1 commit into from
Oct 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pages/airdrops/manage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,26 +429,26 @@ const ManageAirdropPage: NextPage = () => {
)}
<div className="grid grid-cols-2 gap-8 mt-4">
<FormControl
subtitle="Transfer the remaining tokens to a given address (current wallet address by default)."
subtitle="Transfer a part or all of the remaining tokens to a given address."
title="Withdraw Remaining Tokens"
>
<fieldset className="p-4 pl-0 space-y-4 rounded">
<Conditional test={Boolean(airdrop && !airdrop.escrow && !airdrop.processing)}>
<Input
className="w-3/4"
className="w-[80%]"
onChange={(e) => setRecipientAddress(e.target.value)}
placeholder="Enter recipient address (wallet address by default)"
placeholder="Enter recipient address (current wallet address by default)"
type="string"
value={recipientAddress?.toString()}
/>
<Input
className="w-3/4"
className="w-[80%]"
onChange={(e) => {
Number(e.target.value) === 0
? setWithdrawalAmount(undefined)
: setWithdrawalAmount(Number(e.target.value))
}}
placeholder="Enter the amount to be withdrawn"
placeholder="Enter the amount to be withdrawn (optional)"
type="number"
value={withdrawalAmount === 0 ? undefined : withdrawalAmount}
/>
Expand Down