show notebooks at fixed positions

This commit is contained in:
ammarahm-ed
2021-12-31 15:01:43 +05:00
parent 31957b8650
commit 26f8a5819e

View File

@@ -89,9 +89,11 @@ const MoveNoteComponent = ({close, note, setNote}) => {
const [state, dispatch] = useTracked();
const {colors} = state;
const notebooks = useNotebookStore(state =>
state.notebooks.filter(n => n.type === 'notebook')
const nbs = useNotebookStore(state =>
state.notebooks.filter(n => n?.type === 'notebook')
);
let notebooks = [...db.notebooks.all];
const selectedItemsList = useSelectionStore(state => state.selectedItemsList);
const setNotebooks = useNotebookStore(state => state.setNotebooks);
const [expanded, setExpanded] = useState('');
@@ -146,7 +148,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
if (note && note.id) {
setNote({...db.notes.note(note.id).data});
requestAnimationFrame(() => {
layoutmanager.withSpringAnimation(500);
//layoutmanager.withSpringAnimation(500);
Navigation.setRoutesToUpdate([
Navigation.routeNames.NotesPage,
Navigation.routeNames.Favorites,
@@ -173,7 +175,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
if (note && note.id) {
setNote({...db.notes.note(note.id).data});
requestAnimationFrame(() => {
layoutmanager.withSpringAnimation(500);
//layoutmanager.withSpringAnimation(500);
Navigation.setRoutesToUpdate([
Navigation.routeNames.NotesPage,
Navigation.routeNames.Favorites,