mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +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:hover { background: rgba(0, 0, 0, 0.2);}
|
||||
.light .solid-border { border: solid 1px gray;}
|
||||
.light .donate-result-view .paypal-button { border: solid 1px gray; }
|
||||
.light .accent1-border { border-color:green}
|
||||
|
||||
/* 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; }
|
||||
|
||||
|
||||
@@ -1,21 +1,13 @@
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import React, { useState} from 'react';
|
||||
import React from 'react';
|
||||
import { faCoffee} from "@fortawesome/free-solid-svg-icons";
|
||||
import "./DonateResultView.css";
|
||||
import { sendAnalyticsEvent } from '../analytics';
|
||||
import { faPaypal } from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
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">
|
||||
<p>Thank you for your interest in donation. At this point BitwiseCmd can accept donations via services listed below:</p>
|
||||
|
||||
|
||||
<div className='section'>
|
||||
<h3>buymeacoffee.com</h3>
|
||||
<p>
|
||||
@@ -23,36 +15,12 @@ function DonateResultView() {
|
||||
<FontAwesomeIcon icon={faCoffee} size='lg' /> Buy Me a Coffee
|
||||
</a>
|
||||
</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>
|
||||
|
||||
function copy() {
|
||||
if (navigator.clipboard) {
|
||||
navigator.clipboard.writeText(addr);
|
||||
}
|
||||
setState('copied');
|
||||
setTimeout(() => setState('default'), 3000);
|
||||
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "CopyBTCAddressCopyClicked"})
|
||||
}
|
||||
|
||||
function onBuyMeCoffe() {
|
||||
sendAnalyticsEvent({eventAction: "BuyMeCoffeeClicked", eventCategory: "Donation"})
|
||||
}
|
||||
}
|
||||
|
||||
export default DonateResultView;
|
||||
export default DonateResultView;
|
||||
|
||||
Reference in New Issue
Block a user