Add donation button

This commit is contained in:
Borys_Levytskyi
2021-01-18 13:14:53 +02:00
parent 9f5059f7a0
commit 86639f59b7
6 changed files with 48 additions and 11 deletions

View File

@@ -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',