This commit is contained in:
9qeklajc
2026-02-15 17:16:10 +01:00
parent 21f421b212
commit 709a4ba0dc
5 changed files with 5 additions and 12 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ export function ChildKeyCreator({
)}
<div className='flex flex-col gap-6'>
{configs.map((config, index) => (
{configs.map((config) => (
<div
key={config.id}
className='bg-muted/30 relative space-y-4 rounded-lg border p-4 pt-6'
@@ -9,7 +9,7 @@ import { Textarea } from '@/components/ui/textarea';
import { Input } from '@/components/ui/input';
import { Separator } from '@/components/ui/separator';
import { KeyOptions } from '@/components/key-options';
import type { WalletSnapshot } from './key-info-details';
import type { ChildKeyInfo, WalletSnapshot } from './key-info-details';
type RefundReceipt = {
token?: string;
@@ -56,7 +56,7 @@ async function fetchWalletInfo(
balance_limit: number | null;
balance_limit_reset: string | null;
validity_date: number | null;
child_keys?: any[];
child_keys?: ChildKeyInfo[];
};
return {
+1 -5
View File
@@ -14,11 +14,7 @@ import { ConfigurationService } from '@/lib/api/services/configuration';
import { CashuPaymentWorkflow } from './cashu-payment-workflow';
import { LightningPaymentWorkflow } from './lightning-payment-workflow';
import { ApiKeyManager } from './api-key-manager';
import {
KeyInfoDetails,
type WalletSnapshot,
type ChildKeyInfo,
} from './key-info-details';
import { KeyInfoDetails, type WalletSnapshot } from './key-info-details';
import { ChildKeyCreator } from '@/components/child-key-creator';
type NodeInfo = {
+1 -3
View File
@@ -67,9 +67,7 @@ export function KeyInfoDetails({
// Sync internal state with props if they change
useEffect(() => {
if (apiKey !== apiKeyInput) {
setApiKeyInput(apiKey);
}
setApiKeyInput(apiKey);
}, [apiKey]);
const fetchDetails = useCallback(
-1
View File
@@ -1,5 +1,4 @@
import { z } from 'zod';
import { apiClient } from '../client';
import { ConfigurationService } from './configuration';
import axios from 'axios';