From fc9ea13848bcb03ac57a29d775f63e101985c3d2 Mon Sep 17 00:00:00 2001 From: BorysLevytskyi Date: Sat, 20 May 2023 13:31:06 +0200 Subject: [PATCH] Add buymecoffee donation option --- src/shell/components/DonateResultView.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/shell/components/DonateResultView.tsx b/src/shell/components/DonateResultView.tsx index 6c69b57..120677e 100644 --- a/src/shell/components/DonateResultView.tsx +++ b/src/shell/components/DonateResultView.tsx @@ -1,6 +1,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React, { useState} from 'react'; -import { faClipboard} from "@fortawesome/free-solid-svg-icons"; +import { faClipboard, faCoffee} from "@fortawesome/free-solid-svg-icons"; import "./DonateResultView.css"; import { sendAnalyticsEvent } from '../analytics'; import { faPaypal } from '@fortawesome/free-brands-svg-icons'; @@ -14,9 +14,15 @@ function DonateResultView() { const addr = "bc1qyv08z29776uwdwy2m0c77gpgpupzr78jpcnraq"; return
-

Thank you for your interest in donation. At this point BitwiseCmd can accept donations in Bitcoin or via PayPayl.

+

Thank you for your interest in donation. At this point BitwiseCmd can accept donations via services listed below:

+

buymeacoffee.com

+

+ onBuyMeCoffe()} target='_blank'> + Buy Me a Coffee + +

PayPal

@@ -41,6 +47,10 @@ function DonateResultView() { setTimeout(() => setState('default'), 3000); sendAnalyticsEvent({eventCategory: "Donation", eventAction: "CopyBTCAddressCopyClicked"}) } + + function onBuyMeCoffe() { + sendAnalyticsEvent({eventAction: "BuyMeCoffeeClicked", eventCategory: "Donation"}) + } } export default DonateResultView; \ No newline at end of file