Skip to content

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

minor fixes

Ammar Ahmedb7cb6c52c10a
diff --git a/apps/mobile/src/screens/editor/index.tsx b/apps/mobile/src/screens/editor/index.tsx
index 62f78212c..e1f878543 100755
--- a/apps/mobile/src/screens/editor/index.tsx
+++ b/apps/mobile/src/screens/editor/index.tsx
@@ -129,7 +129,7 @@ const Editor = React.memo(
allowUniversalAccessFromFileURLs={true}
originWhitelist={['*']}
source={{
- uri: __DEV__ ? EDITOR_URI : EDITOR_URI
+ uri: __DEV__ ? 'http://localhost:3000/' : EDITOR_URI
}}
style={style}
autoManageStatusBarEnabled={false}
diff --git a/apps/mobile/src/screens/editor/tiptap/types.ts b/apps/mobile/src/screens/editor/tiptap/types.ts
index 8e034fbb3..ae57c7f72 100644
--- a/apps/mobile/src/screens/editor/tiptap/types.ts
+++ b/apps/mobile/src/screens/editor/tiptap/types.ts
@@ -1,5 +1,5 @@
import { useEditor } from './use-editor';
-import { ToolbarGroupDefinition } from 'notesnook-editor/dist/es/toolbar/types';
+import type { ToolbarGroupDefinition } from 'notesnook-editor/dist/es/toolbar/types';
import { ThemeStore } from '../../../stores/use-theme-store';
export type useEditorType = ReturnType<typeof useEditor>;
diff --git a/apps/mobile/src/screens/notes/colored.tsx b/apps/mobile/src/screens/notes/colored.tsx
index d5ae6a959..fe27e1f56 100644
--- a/apps/mobile/src/screens/notes/colored.tsx
+++ b/apps/mobile/src/screens/notes/colored.tsx
@@ -35,7 +35,9 @@ ColoredNotes.navigate = (item: ColorType, canGoBack: boolean) => {
alias: toCamelCase(alias),
title: item.title,
id: item.id,
- type: 'color'
+ type: 'color',
+ //@ts-ignore
+ color: item.title?.toLowerCase()
},
{
item: item,
diff --git a/apps/mobile/src/screens/settings/index.tsx b/apps/mobile/src/screens/settings/index.tsx
index bdc4ab519..cf40a88be 100644
--- a/apps/mobile/src/screens/settings/index.tsx
+++ b/apps/mobile/src/screens/settings/index.tsx
@@ -21,14 +21,14 @@ const screenListeners = {
// const Home = React.lazy(() => import(/* webpackChunkName: "settings-home" */ './home'));
// const Group = React.lazy(() => import(/* webpackChunkName: "settings-group" */ './group'));
-const Fallback = () => {
- return (
- <>
- <Header />
- <DelayLayout wait={true} type="settings" />
- </>
- );
-};
+// const Fallback = () => {
+// return (
+// <>
+// <Header />
+// <DelayLayout wait={true} type="settings" />
+// </>
+// );
+// };
// const HomeScreen = (props: NativeStackScreenProps<RouteParams, 'SettingsHome'>) => {
// return (