mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
allow pinning in free mode
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user