diff --git a/src/utils/sp-address.utils.ts b/src/utils/sp-address.utils.ts index 429bc96..f6236ca 100755 --- a/src/utils/sp-address.utils.ts +++ b/src/utils/sp-address.utils.ts @@ -1,17 +1,6 @@ import Services from '../services/service'; import { getCorrectDOM } from './html.utils'; import { addSubscription } from './subscription.utils'; -import QRCode from 'qrcode'; - -//Copy Address -export async function copyToClipboard(fullAddress: string) { - try { - await navigator.clipboard.writeText(fullAddress); - alert('Adresse copiƩe dans le presse-papiers !'); - } catch (err) { - console.error('Failed to copy the address: ', err); - } -} //Generate emojis list export function generateEmojiList(): string[] { @@ -220,18 +209,6 @@ export async function prepareAndSendPairingTx(): Promise { } } -export async function generateQRCode(spAddress: string) { - try { - const container = getCorrectDOM('login-4nk-component') as HTMLElement; - const currentUrl = 'https://' + window.location.host; - const url = await QRCode.toDataURL(currentUrl + '?sp_address=' + spAddress); - const qrCode = container?.querySelector('.qr-code img'); - qrCode?.setAttribute('src', url); - } catch (err) { - console.error(err); - } -} - export async function generateCreateBtn() { try { // Generate CreateBtn