This commit is contained in:
9qeklajc
2026-03-08 21:52:22 +01:00
parent 66975ee271
commit a0f3378cf5
3 changed files with 4 additions and 53 deletions
-38
View File
@@ -1227,44 +1227,6 @@ export default function ProvidersPage() {
>
<CardContent>
<div className='space-y-4'>
{provider.api_key ? (
<div className='bg-muted/50 rounded border p-3'>
<div className='flex items-center justify-between'>
<div className='space-y-1'>
<Label className='text-muted-foreground text-[10px] uppercase'>
Active API Key
</Label>
<div className='max-w-[200px] truncate font-mono text-xs'>
{provider.api_key}
</div>
</div>
<Button
variant='ghost'
size='icon'
className='h-7 w-7'
onClick={() => {
navigator.clipboard.writeText(
provider.api_key!
);
toast.success('API key copied');
}}
>
<Copy className='h-3 w-3' />
</Button>
</div>
</div>
) : (
<div className='rounded border border-amber-200 bg-amber-50 p-3 text-xs text-amber-700 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-400'>
<div className='mb-1 flex items-center gap-2'>
<AlertTriangle className='h-3 w-3' />
<span className='font-semibold'>
No API Key Configured
</span>
</div>
Click the &quot;Key&quot; button above to create
a new key on the upstream node.
</div>
)}
<div className='space-y-2'>
{provider.api_version && (
<div className='flex items-center justify-between text-sm'>
@@ -101,17 +101,6 @@ export function RoutstrProviderCard({
<div className='flex flex-wrap items-center gap-2'>
<div className='flex flex-col gap-1'>{balanceComponent}</div>
<Button
variant='outline'
size='sm'
onClick={onUpdateKey}
className='text-blue-600 hover:text-blue-700 dark:text-blue-400'
title='Update or Create API Key'
>
<Key className='mr-1 h-4 w-4' />
<span className='hidden sm:inline'>Key</span>
</Button>
<Button
variant='outline'
size='sm'
@@ -13,7 +13,7 @@ async function generateQRCodeSVG(text: string): Promise<string> {
try {
return await QRCode.toDataURL(text, {
type: 'image/png',
width: 200,
width: 400,
margin: 1,
color: {
dark: '#000000',
@@ -165,9 +165,9 @@ export function SimpleLightningTopup({
<Image
src={qrCode}
alt='Lightning Invoice QR Code'
className='h-40 w-40'
width={160}
height={160}
className='h-60 w-60'
width={320}
height={320}
unoptimized
/>
</div>