A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
some minor changes
ammarahm-ed6023aebab0f2
diff --git a/apps/mobile/src/components/SortDialog/index.js b/apps/mobile/src/components/SortDialog/index.jsindex cd883cd1e..c169441c8 100644--- a/apps/mobile/src/components/SortDialog/index.js+++ b/apps/mobile/src/components/SortDialog/index.js@@ -1,19 +1,19 @@-import React, { createRef } from 'react';-import { TouchableOpacity, View } from 'react-native';+import React, {createRef} from 'react';+import {TouchableOpacity, View} from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';-import { notesnook } from '../../../e2e/test.ids';-import { Actions } from '../../provider/Actions';-import { defaultState } from '../../provider/DefaultState';-import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';+import {notesnook} from '../../../e2e/test.ids';+import {Actions} from '../../provider/Actions';+import {defaultState} from '../../provider/DefaultState';+import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';import SettingsService from '../../services/SettingsService';-import { getElevation, SORT, sortSettings } from '../../utils';-import { eCloseSortDialog, eOpenSortDialog } from '../../utils/Events';-import { MMKV } from '../../utils/mmkv';-import { SIZE } from '../../utils/SizeUtils';-import { sleep } from '../../utils/TimeUtils';+import {getElevation, SORT, sortSettings} from '../../utils';+import {eCloseSortDialog, eOpenSortDialog} from '../../utils/Events';+import {MMKV} from '../../utils/mmkv';+import {SIZE} from '../../utils/SizeUtils';+import {sleep} from '../../utils/TimeUtils';import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';-import { updateEvent } from '../DialogManager/recievers';-import { PressableButton } from '../PressableButton';+import {updateEvent} from '../DialogManager/recievers';+import {PressableButton} from '../PressableButton';import Seperator from '../Seperator';import Heading from '../Typography/Heading';@@ -47,12 +47,11 @@ class SortDialog extends React.Component {});}- close() {+ async close() {actionSheet.current?.setModalVisible(false);- sleep(200).then(() => {- this.setState({- visible: false,- });+ await sleep(100);+ this.setState({+ visible: false,});}@@ -104,9 +103,8 @@ class SortDialog extends React.Component {this.state.settings?.sortOrder === 'asc' ? 'desc' : 'asc';await SettingsService.set('sortOrder', value);sortSettings.sortOrder = value;- await this.getSettings();+ await this.getSettings();updateEvent({type: Actions.NOTES});-}}activeOpacity={1}style={{diff --git a/apps/mobile/src/components/UpdateDialog/index.js b/apps/mobile/src/components/UpdateDialog/index.jsindex 4ca41855e..46c52d48a 100644--- a/apps/mobile/src/components/UpdateDialog/index.js+++ b/apps/mobile/src/components/UpdateDialog/index.js@@ -34,6 +34,7 @@ export const UpdateDialog = () => {});const format = (ver) => {+ if (!ver) return ""let parts = ver.toString().split('');return `v${parts[0]}.${parts[1]}.${parts[2]}${parts[3] === '0' ? '' : parts[3]@@ -86,7 +87,7 @@ export const UpdateDialog = () => {fontWeight: 'bold',}}size={SIZE.sm}>- Changelog {format(version.mobile)}+ Changelog {format(version?.mobile)}</Paragraph><Paragraphstyle={{@@ -94,7 +95,7 @@ export const UpdateDialog = () => {Platform.OS === 'ios' ? 'Courier New' : 'monospace',}}size={SIZE.xs}>- {version.mobile_changelog && version.mobile_changelog !== ''+ {version?.mobile_changelog && version.mobile_changelog !== ''? version.mobile_changelog: 'No changelog provided.'}</Paragraph>diff --git a/apps/mobile/src/views/Editor/EditorSettings.js b/apps/mobile/src/views/Editor/EditorSettings.jsindex ff1d279b1..37717851a 100644--- a/apps/mobile/src/views/Editor/EditorSettings.js+++ b/apps/mobile/src/views/Editor/EditorSettings.js@@ -20,7 +20,6 @@ export const EditorSettings = () => {const actionSheetRef = useRef();const open = async () => {- console.log('called');setVisible(true);await sleep(1);actionSheetRef.current?.setModalVisible(true);