feat: receive screen

This commit is contained in:
eneller
2026-03-05 21:23:16 +01:00
parent 6af1a8a3e9
commit 9444145bf5
6 changed files with 117 additions and 35 deletions

View File

@@ -0,0 +1,28 @@
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'app-screen-receive',
imports: [FormsModule],
templateUrl: './screen-receive.html',
styleUrl: './screen-receive.less',
})
export class ScreenReceive {
me = 'DemoUser';
amount: number = 0;
shareableLink: string = 'https://yourapp.com/receive?amount=0';
copyLink() {
navigator.clipboard.writeText(this.shareableLink);
alert('Link copied to clipboard!');
}
shareViaEmail() {
const email = `mailto:?subject=Request Money&body=Please send me $${this.amount} via ${this.shareableLink}`;
window.location.href = email;
}
shareViaLink() {
this.copyLink();
}
}