mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
wallet and card resizing
This commit is contained in:
1 parent
4f2bfa4d5b
commit
c3b1adc375
3 files changed
+35
-5
No files matched your search
@@ -31,7 +31,7 @@ export function ReceiveCard({
|
||||
<Download className="h-5 w-5 mr-2" />
|
||||
Receive
|
||||
</CardTitle>
|
||||
<CardDescription>
|
||||
<CardDescription className="min-h-[2.5rem] flex items-center">
|
||||
{mode === 'tokens'
|
||||
? 'Enter Cashu token to redeem'
|
||||
: 'Deposit funds with Lightning'
|
||||
@@ -51,6 +51,11 @@ export function ReceiveCard({
|
||||
placeholder="cashuBo2Ft..."
|
||||
value={tokenInput}
|
||||
onChange={(e) => setTokenInput(e.target.value)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' && tokenInput.trim() && activeMintUrl && !isLoading) {
|
||||
onReceive();
|
||||
}
|
||||
}}
|
||||
className="flex-1"
|
||||
disabled={!activeMintUrl}
|
||||
/>
|
||||
@@ -73,6 +78,11 @@ export function ReceiveCard({
|
||||
type="number"
|
||||
value={quoteAmount}
|
||||
onChange={(e) => setQuoteAmount(e.target.value)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' && quoteAmount && activeMintUrl && !isLoading) {
|
||||
onReceive();
|
||||
}
|
||||
}}
|
||||
disabled={!activeMintUrl}
|
||||
/>
|
||||
<Button onClick={onReceive} disabled={!quoteAmount || !activeMintUrl || isLoading}>
|
||||
|
||||
Reference in new issue
Block a user