mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
open Premium Dialog iOS
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user