allow pinning in free mode

This commit is contained in:
ammarahm-ed
2020-12-15 14:16:47 +05:00
parent dc155f4923
commit d63d52d322

View File

@@ -275,8 +275,6 @@ export const ActionSheetComponent = ({
name: 'Pin', name: 'Pin',
icon: 'tag-outline', icon: 'tag-outline',
func: async () => { func: async () => {
await PremiumService.verify(
async () => {
if (!note.id) return; if (!note.id) return;
if (note.type === 'note') { if (note.type === 'note') {
if (db.notes.pinned.length === 3) { if (db.notes.pinned.length === 3) {
@@ -301,13 +299,6 @@ export const ActionSheetComponent = ({
} }
localRefresh(item.type); localRefresh(item.type);
}, },
{
context: 'sheet',
title: 'Get Notesnook Pro',
desc: 'To pin notes and notebooks become a Pro user today.',
},
);
},
close: false, close: false,
check: true, check: true,
on: note.pinned, on: note.pinned,