mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
Replace bitcoin donation with PayPal
This commit is contained in:
16451
package-lock.json
generated
16451
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -47,7 +47,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/enzyme-adapter-react-16": "^1.0.5",
|
"@types/enzyme-adapter-react-16": "^1.0.5",
|
||||||
"http-server": "^0.12.3",
|
"http-server": "^0.12.3"
|
||||||
"wdio-jasmine-framework": "^0.3.8"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,15 @@ import { faEnvelope, faDonate } from "@fortawesome/free-solid-svg-icons";
|
|||||||
import { faTwitter, faGithub} from "@fortawesome/free-brands-svg-icons";
|
import { faTwitter, faGithub} from "@fortawesome/free-brands-svg-icons";
|
||||||
import './TopLinks.css';
|
import './TopLinks.css';
|
||||||
import CommandLink from '../../core/components/CommandLink';
|
import CommandLink from '../../core/components/CommandLink';
|
||||||
|
import cmd from '../cmd';
|
||||||
|
|
||||||
function TopLinks() {
|
function TopLinks() {
|
||||||
|
|
||||||
return <ul className="top-links">
|
return <ul className="top-links">
|
||||||
<li>
|
<li>
|
||||||
<CommandLink text="donate" icon={faDonate} textClassName="link-text" />
|
<a href='https://www.paypal.com/donate/?hosted_button_id=3GREJYC4T5AJ8' onClick={onDonate} target="_blank">
|
||||||
|
<span className={faDonate.iconName}>donate</span>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://github.com/BorisLevitskiy/BitwiseCmd"><FontAwesomeIcon className="icon" icon={faGithub} size="lg" /><span className="link-text">github</span></a>
|
<a href="https://github.com/BorisLevitskiy/BitwiseCmd"><FontAwesomeIcon className="icon" icon={faGithub} size="lg" /><span className="link-text">github</span></a>
|
||||||
@@ -22,4 +26,9 @@ function TopLinks() {
|
|||||||
</ul>;
|
</ul>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const onDonate = () => {
|
||||||
|
cmd.execute('donate');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
export default TopLinks;
|
export default TopLinks;
|
||||||
@@ -40,8 +40,6 @@ const shellModule = {
|
|||||||
else {
|
else {
|
||||||
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "DonateButtonClickedAgain"})
|
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "DonateButtonClickedAgain"})
|
||||||
}
|
}
|
||||||
|
|
||||||
appState.addCommandResult(c.input, <DonateResultView />);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
cmd.command("track", (c:CommandInput) => {
|
cmd.command("track", (c:CommandInput) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user