mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-23 13:12:42 +01:00
Add donation button
This commit is contained in:
@@ -31,6 +31,18 @@ const shellModule = {
|
||||
appState.addCommandResult(c.input, <TextResultView text={`Debug Mode: ${appState.debugMode}`}/>);
|
||||
});
|
||||
|
||||
cmd.command("donate", (c:CommandInput) => {
|
||||
|
||||
if(appState.onDonationClicked()) {
|
||||
sendAnalyticsEvent({eventCategory: "DonationButton", eventAction: "Clicked"})
|
||||
}
|
||||
else {
|
||||
sendAnalyticsEvent({eventCategory: "DonationButton", eventAction: "ClickedAgain"})
|
||||
}
|
||||
|
||||
appState.addCommandResult(c.input, <TextResultView text={`Thank you for your interest in donation. This feature is under constraction. I'll let you know when it will be done.`}/>);
|
||||
});
|
||||
|
||||
cmd.command("track", (c:CommandInput) => {
|
||||
sendAnalyticsEvent({
|
||||
eventCategory: 'General',
|
||||
|
||||
Reference in New Issue
Block a user