open Premium Dialog iOS

This commit is contained in:
ammarahm-ed
2020-06-03 10:39:47 +05:00
parent 5e57ab3afc
commit b1c6420fdf
3 changed files with 15 additions and 14 deletions

View File

@@ -301,8 +301,7 @@ export const ActionSheetComponent = ({
icon: 'tag-outline',
func: async () => {
if (!premiumUser) {
eSendEvent(eOpenPremiumDialog);
close();
close('premium');
return;
}
@@ -324,8 +323,7 @@ export const ActionSheetComponent = ({
icon: 'star',
func: async () => {
if (!premiumUser) {
eSendEvent(eOpenPremiumDialog);
close();
close('premium');
return;
}
if (!note.id) return;
@@ -346,8 +344,7 @@ export const ActionSheetComponent = ({
icon: 'shield',
func: () => {
if (!premiumUser) {
eSendEvent(eOpenPremiumDialog);
close();
close('premium');
return;
}
if (!note.id) return;
@@ -833,8 +830,7 @@ export const ActionSheetComponent = ({
<TouchableOpacity
onPress={() => {
if (!premiumUser) {
eSendEvent(eOpenPremiumDialog);
close();
close('premium');
return;
}
tagsInputRef.current?.focus();