Prototype accelerate checkout properties

This commit is contained in:
Mononaut
2024-04-13 09:05:05 +00:00
parent 5f2d7b32ae
commit 29851537eb
3 changed files with 24 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Component, OnInit, OnDestroy, Output, EventEmitter, Input } from '@angular/core';
import { Transaction } from '../../interfaces/electrs.interface';
import { MempoolPosition } from '../../interfaces/node-api.interface';
@Component({
selector: 'app-accelerate-checkout',
@@ -6,6 +8,10 @@ import { Component, OnInit, OnDestroy } from '@angular/core';
styleUrls: ['./accelerate-checkout.component.scss']
})
export class AccelerateCheckout implements OnInit, OnDestroy {
@Input() tx: Transaction ;
@Input() eta: number;
@Output() close = new EventEmitter<null>();
constructor() {
}
@@ -14,4 +20,9 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
ngOnDestroy() {
}
closeModal(): void {
console.log('close modal')
this.close.emit();
}
}