Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix types

ammarahm-ede4c1e7315eed
diff --git a/apps/mobile/src/screens/home/index.tsx b/apps/mobile/src/screens/home/index.tsx
index be972e7f8..7c52fa712 100755
--- a/apps/mobile/src/screens/home/index.tsx
+++ b/apps/mobile/src/screens/home/index.tsx
@@ -2,19 +2,13 @@ import React from 'react';
import { FloatingButton } from '../../components/container/floating-button';
import { RightMenus } from '../../components/header/right-menus';
import List from '../../components/list';
-import { DDS } from '../../services/device-detection';
-import { eSendEvent } from '../../services/event-manager';
import Navigation, { NavigationProps } from '../../services/navigation';
import SearchService from '../../services/search';
import SettingsService from '../../services/settings';
import useNavigationStore from '../../stores/use-navigation-store';
import { useNoteStore } from '../../stores/use-notes-store';
-import { editing } from '../../utils';
import { db } from '../../utils/database';
-import { eOnLoadNote } from '../../utils/events';
-import { tabBarRef } from '../../utils/global-refs';
import { useNavigationFocus } from '../../utils/hooks/use-navigation-focus';
-import { getNote } from '../editor/Functions';
import { openEditor } from '../notes/common';
const prepareSearch = () => {
diff --git a/apps/mobile/src/stores/useTrashStore.ts b/apps/mobile/src/stores/useTrashStore.ts
index 7c31e118b..2b3bdeda5 100644
--- a/apps/mobile/src/stores/useTrashStore.ts
+++ b/apps/mobile/src/stores/useTrashStore.ts
@@ -2,11 +2,11 @@
import { groupArray } from 'notes-core/utils/grouping';
import create, { State } from 'zustand';
import { db } from '../utils/database';
-import { NotebookType, NoteType } from '../utils/types';
+import { TrashType } from '../utils/types';
export interface TrashStore extends State {
- trash: Array<NoteType | NotebookType>;
- setTrash: (items?: Array<NoteType | NotebookType>) => void;
+ trash: Array<TrashType>;
+ setTrash: (items?: Array<TrashType>) => void;
clearTrash: () => void;
}
diff --git a/apps/mobile/src/utils/types.ts b/apps/mobile/src/utils/types.ts
index 2355c9ff5..c4e4a9388 100644
--- a/apps/mobile/src/utils/types.ts
+++ b/apps/mobile/src/utils/types.ts
@@ -125,7 +125,7 @@ type TrashItem<TItem extends Entity<'note' | 'notebook'>> = Entity<'trash'> & {
deleted: boolean;
} & Omit<TItem, 'id' | 'type'>;
-type TrashType = TrashItem<NoteType> | TrashItem<NotebookType>;
+export type TrashType = TrashItem<NoteType> | TrashItem<NotebookType>;
export interface GroupHeader extends Omit<Entity<'header'>, 'id' | 'dateCreated' | 'dateModified'> {
title: string;