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": {
|
||||
"@types/enzyme-adapter-react-16": "^1.0.5",
|
||||
"http-server": "^0.12.3",
|
||||
"wdio-jasmine-framework": "^0.3.8"
|
||||
"http-server": "^0.12.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,15 @@ import { faEnvelope, faDonate } from "@fortawesome/free-solid-svg-icons";
|
||||
import { faTwitter, faGithub} from "@fortawesome/free-brands-svg-icons";
|
||||
import './TopLinks.css';
|
||||
import CommandLink from '../../core/components/CommandLink';
|
||||
import cmd from '../cmd';
|
||||
|
||||
function TopLinks() {
|
||||
|
||||
return <ul className="top-links">
|
||||
<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>
|
||||
<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>;
|
||||
}
|
||||
|
||||
const onDonate = () => {
|
||||
cmd.execute('donate');
|
||||
return true;
|
||||
}
|
||||
|
||||
export default TopLinks;
|
||||
@@ -40,8 +40,6 @@ const shellModule = {
|
||||
else {
|
||||
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "DonateButtonClickedAgain"})
|
||||
}
|
||||
|
||||
appState.addCommandResult(c.input, <DonateResultView />);
|
||||
});
|
||||
|
||||
cmd.command("track", (c:CommandInput) => {
|
||||
|
||||
Reference in New Issue
Block a user