@@ -5,7 +5,7 @@ import { generateInvoice } from "../app/lightning";
5
5
import { SCREEN_ONX_ADDRESS } from "../app/constants" ;
6
6
import * as nostrInterface from "../utils/nostr/encryption" ; // Evita conflito de palavras-chave
7
7
8
- // Tipagem correta dos parâmetros de navegação
8
+ // Navigation
9
9
interface NavigationParams {
10
10
OnboardingHome : undefined ;
11
11
Send : undefined ;
@@ -14,7 +14,7 @@ interface NavigationParams {
14
14
generateAddress : undefined ;
15
15
}
16
16
17
- // Tipagem para armazenamento de invoice na blockchain
17
+ // Storage Invoice
18
18
interface ScreenOnChain {
19
19
[ key in typeof SCREEN_ONX_ADDRESS ] : {
20
20
invoice : string ;
@@ -28,7 +28,7 @@ export const Receive: React.FC = () => {
28
28
) ;
29
29
const [ invoice , setInvoice ] = useState < string | null > ( null ) ;
30
30
31
- // Copiar endereço para área de transferência
31
+ // Copy Adress
32
32
const handleCopyAddress = ( ) => {
33
33
if ( bitcoinAddress !== "Generate an address to receive Bitcoin" ) {
34
34
console . log ( "Address copied to clipboard:" , bitcoinAddress ) ;
@@ -37,13 +37,13 @@ export const Receive: React.FC = () => {
37
37
}
38
38
} ;
39
39
40
- // Gerar novo endereço Bitcoin
40
+ // New Adrress Bitcoin
41
41
const handleGenerateAddress = ( ) => {
42
42
const newAddress = "bc1q" + Math . random ( ) . toString ( 36 ) . substring ( 2 , 15 ) ;
43
43
setBitcoinAddress ( newAddress ) ;
44
44
} ;
45
45
46
- // Gerar fatura Lightning
46
+ // Generate Invoice Lightning
47
47
const handleGenerateInvoice = async ( ) => {
48
48
try {
49
49
const newInvoice = await generateInvoice ( ) ;
0 commit comments