A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
use arrow functions
ammarahm-edecf8aa884940
diff --git a/apps/mobile/src/components/Premium/index.js b/apps/mobile/src/components/Premium/index.jsindex 29d08f5ee..3f160e51b 100644--- a/apps/mobile/src/components/Premium/index.js+++ b/apps/mobile/src/components/Premium/index.js@@ -15,21 +15,21 @@ class PremiumDialog extends React.Component {}componentDidMount() {- eSubscribeEvent(eOpenPremiumDialog, this.open.bind(this));- eSubscribeEvent(eClosePremiumDialog, this.close.bind(this));+ eSubscribeEvent(eOpenPremiumDialog, this.open);+ eSubscribeEvent(eClosePremiumDialog, this.close);}componentWillUnmount() {- eUnSubscribeEvent(eOpenPremiumDialog, this.open.bind(this));- eUnSubscribeEvent(eClosePremiumDialog, this.close.bind(this));+ eUnSubscribeEvent(eOpenPremiumDialog, this.open);+ eUnSubscribeEvent(eClosePremiumDialog, this.close);}- open(promoInfo) {+ open = promoInfo => {this.setState({visible: true,promo: promoInfo});- }+ };close = () => {this.setState({@@ -47,6 +47,7 @@ class PremiumDialog extends React.Component {render() {return !this.state.visible ? null : (<BaseDialog+ bouncebackground={this.props.colors.bg}onRequestClose={this.onClose}><Component