Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

update

ammarahm-edbdb90b0fcac1
diff --git a/apps/mobile/src/components/ActionSheetComponent/GetPremium.js b/apps/mobile/src/components/ActionSheetComponent/GetPremium.js
index 1313c49f5..3796a51b2 100644
--- a/apps/mobile/src/components/ActionSheetComponent/GetPremium.js
+++ b/apps/mobile/src/components/ActionSheetComponent/GetPremium.js
@@ -95,6 +95,16 @@ export const GetPremium = ({close, context = 'global', offset = 0}) => {
};
}, []);
+ const onPress = async () => {
+ open(null);
+ eSendEvent(eCloseActionSheet);
+ if (editing.isFocused) {
+ post('blur');
+ }
+ await sleep(300);
+ eSendEvent(eOpenPremiumDialog);
+ };
+
return (
<Animated.View
style={{
@@ -133,20 +143,7 @@ export const GetPremium = ({close, context = 'global', offset = 0}) => {
</Paragraph>
</View>
- <Button
- onPress={async () => {
- open(null);
- eSendEvent(eCloseActionSheet);
- if (editing.isFocused) {
- post('blur');
- }
- await sleep(300);
- eSendEvent(eOpenPremiumDialog);
- }}
- width={80}
- title="Get Now"
- type="inverted"
- />
+ <Button onPress={onPress} width={80} title="Get Now" type="inverted" />
</Animated.View>
);
};