From d059c5ca27c23f0d892fe798d281ccb4c7aed845 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sun, 30 Jun 2024 03:43:28 +0000 Subject: [PATCH] [accelerator] slim summary screen --- .../accelerate-checkout.component.html | 59 +++++++------------ .../accelerate-checkout.component.scss | 13 ++++ .../accelerate-checkout.component.ts | 10 +--- .../transaction/transaction.component.html | 14 ++++- 4 files changed, 47 insertions(+), 49 deletions(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html index 2ffb94294..73b209593 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html @@ -266,36 +266,23 @@ @else if (step === 'summary') { -
-
-

Accelerate your Bitcoin transaction?

+ @if (!noCTA) { +
+
+

Accelerate your Bitcoin transaction?

+
-
+ }
You are currently on the waitlist for Mempool Accelerator™
-
-
+
+
- - -
-
-
-
- +
-
+
Your transaction will be prioritized by up to {{ etaInfo.hashratePercentage | number : '1.1-1' }}% of miners.
-
-
-
- @if (isLoggedIn() || canPayWithBitcoin || canPayWithCashapp) { - - } @else { - - } -
+ @if (isLoggedIn() || canPayWithBitcoin || canPayWithCashapp) { + + } @else { + + }
diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss index 1fdb51086..da4dc8079 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss @@ -171,4 +171,17 @@ .btn-small-height { line-height: 1; +} + +.summary-row { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 0 2em; + flex-wrap: wrap; + + @media (max-width: 640px) { + flex-direction: column; + } } \ No newline at end of file diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index c69da8524..4f8c5b163 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -56,10 +56,11 @@ export class AccelerateCheckout implements OnInit, OnDestroy { @Input() cashappEnabled: boolean = true; @Input() advancedEnabled: boolean = false; @Input() forceMobile: boolean = false; + @Input() noCTA: boolean = false; @Output() changeMode = new EventEmitter(); calculating = true; - choosenOption: 'wait' | 'accel'; + armed = false; error = ''; math = Math; isMobile: boolean = window.innerWidth <= 767.98; @@ -445,13 +446,6 @@ export class AccelerateCheckout implements OnInit, OnDestroy { }); } - /** - * UI events - */ - selectedOptionChanged(event) { - this.choosenOption = event.target.id; - } - isLoggedIn(): boolean { const auth = this.storageService.getAuth(); return auth !== null; diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index eecae86f7..29ef8bfba 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -84,9 +84,17 @@
- - Mempool Accelerator™ fixes this. - +