wallet and card resizing

This commit is contained in:
lemonknowsall committed 2025-10-12 14:26:34 -07:00
1 parent 4f2bfa4d5b
commit c3b1adc375
3 files changed
+35 -5

No files matched your search

+11 -1
View File
@@ -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}>