mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
add trash template
This commit is contained in:
@@ -20,7 +20,7 @@ import Icon from 'react-native-vector-icons/Feather';
|
||||
import NavigationService from '../../services/NavigationService';
|
||||
import {db} from '../../../App';
|
||||
import FastStorage from 'react-native-fast-storage';
|
||||
import {useTracked} from '../../provider';
|
||||
import {useTracked, ACTIONS} from '../../provider';
|
||||
const w = Dimensions.get('window').width;
|
||||
const h = Dimensions.get('window').height;
|
||||
|
||||
@@ -260,6 +260,7 @@ export const ActionSheetComponent = ({
|
||||
if (!note.dateCreated) return;
|
||||
db.pinItem(note.type, note.dateCreated);
|
||||
localRefresh(item.type);
|
||||
dispatch({type: ACTIONS.PINNED});
|
||||
},
|
||||
close: false,
|
||||
check: true,
|
||||
|
||||
Reference in New Issue
Block a user