mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-15 09:22:23 +01:00
Remove bitcoin and PayPal donation options (#65)
This commit is contained in:
@@ -132,7 +132,6 @@ button.link-button {text-decoration: underline;}
|
|||||||
.light .button { border: solid 1px gray; }
|
.light .button { border: solid 1px gray; }
|
||||||
.light .button:hover { background: rgba(0, 0, 0, 0.2);}
|
.light .button:hover { background: rgba(0, 0, 0, 0.2);}
|
||||||
.light .solid-border { border: solid 1px gray;}
|
.light .solid-border { border: solid 1px gray;}
|
||||||
.light .donate-result-view .paypal-button { border: solid 1px gray; }
|
|
||||||
.light .accent1-border { border-color:green}
|
.light .accent1-border { border-color:green}
|
||||||
|
|
||||||
/* Dark */
|
/* Dark */
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
.donate-result-view .copy-button {margin-left: 10px; }
|
|
||||||
.donate-result-view .qrcode-container { background: white; display: inline-block; padding: 10px}
|
|
||||||
.donate-result-view .section { margin-top: 20px; }
|
.donate-result-view .section { margin-top: 20px; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,10 @@
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import React, { useState} from 'react';
|
import React from 'react';
|
||||||
import { faCoffee} from "@fortawesome/free-solid-svg-icons";
|
import { faCoffee} from "@fortawesome/free-solid-svg-icons";
|
||||||
import "./DonateResultView.css";
|
import "./DonateResultView.css";
|
||||||
import { sendAnalyticsEvent } from '../analytics';
|
import { sendAnalyticsEvent } from '../analytics';
|
||||||
import { faPaypal } from '@fortawesome/free-brands-svg-icons';
|
|
||||||
|
|
||||||
function DonateResultView() {
|
function DonateResultView() {
|
||||||
|
|
||||||
const copyCss = navigator.clipboard !== null && navigator.clipboard !== undefined ? "" : "hidden";
|
|
||||||
const [state, setState] = useState('default');
|
|
||||||
const copiedCss = state === "copied" ? "" : "hidden";
|
|
||||||
|
|
||||||
const addr = "bc1qyv08z29776uwdwy2m0c77gpgpupzr78jpcnraq";
|
|
||||||
|
|
||||||
return <div className="donate-result-view">
|
return <div className="donate-result-view">
|
||||||
<p>Thank you for your interest in donation. At this point BitwiseCmd can accept donations via services listed below:</p>
|
<p>Thank you for your interest in donation. At this point BitwiseCmd can accept donations via services listed below:</p>
|
||||||
|
|
||||||
@@ -23,33 +15,9 @@ function DonateResultView() {
|
|||||||
<FontAwesomeIcon icon={faCoffee} size='lg' /> Buy Me a Coffee
|
<FontAwesomeIcon icon={faCoffee} size='lg' /> Buy Me a Coffee
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<h3>PayPal</h3>
|
|
||||||
<p>
|
|
||||||
<a className='paypal-button button button-large' href='https://www.paypal.com/donate/?hosted_button_id=3GREJYC4T5AJ8' target='_blank' rel="noreferrer">
|
|
||||||
<FontAwesomeIcon icon={faPaypal} size='lg' />
|
|
||||||
Donate via PayPal
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className='section'>
|
|
||||||
<h3>Bitcoin</h3>
|
|
||||||
<span>BTC Address:</span> <strong>{addr}</strong>
|
|
||||||
<button type="button" onClick={() => copy()} title="Copy this address into the Cliboard" className={`button copy-button ${copyCss}`}>
|
|
||||||
Copy
|
|
||||||
</button> <span className={`soft ${copiedCss}`}>copied</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
function copy() {
|
|
||||||
if (navigator.clipboard) {
|
|
||||||
navigator.clipboard.writeText(addr);
|
|
||||||
}
|
|
||||||
setState('copied');
|
|
||||||
setTimeout(() => setState('default'), 3000);
|
|
||||||
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "CopyBTCAddressCopyClicked"})
|
|
||||||
}
|
|
||||||
|
|
||||||
function onBuyMeCoffe() {
|
function onBuyMeCoffe() {
|
||||||
sendAnalyticsEvent({eventAction: "BuyMeCoffeeClicked", eventCategory: "Donation"})
|
sendAnalyticsEvent({eventAction: "BuyMeCoffeeClicked", eventCategory: "Donation"})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user