Skip to content

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

cleanup console.log

ammarahm-edaafeb4ed3214
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index bed3bfd13..e06f1e4b6 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -351,7 +351,7 @@ export const ActionSheetComponent = ({
.catch(async e => {
switch (e.message) {
case db.vault.ERRORS.noVault:
- console.log('novault', e);
+
close('novault');
break;
case db.vault.ERRORS.vaultLocked:
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index 310aabdc9..5d997ea30 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -1,17 +1,42 @@
-import React, { useEffect } from 'react';
-import { ActivityIndicator, Platform, SafeAreaView, ScrollView, StatusBar, Text, TouchableOpacity, View } from 'react-native';
-import { createAnimatableComponent } from 'react-native-animatable';
+import React, {useEffect} from 'react';
+import {
+ ActivityIndicator,
+ Platform,
+ SafeAreaView,
+ ScrollView,
+ StatusBar,
+ Text,
+ TouchableOpacity,
+ View,
+} from 'react-native';
+import {createAnimatableComponent} from 'react-native-animatable';
import MMKV from 'react-native-mmkv-storage';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import { ACCENT, COLOR_SCHEME, COLOR_SCHEME_DARK, COLOR_SCHEME_LIGHT, normalize, opacity, ph, pv, setColorScheme, SIZE, WEIGHT } from '../../common/common';
-import { useTracked } from '../../provider';
-import { ACTIONS } from '../../provider/actions';
-import { eSendEvent } from '../../services/eventManager';
-import { eClearSearch, refreshNotesPage, eOpenLoginDialog } from '../../services/events';
+import {
+ ACCENT,
+ COLOR_SCHEME,
+ COLOR_SCHEME_DARK,
+ COLOR_SCHEME_LIGHT,
+ normalize,
+ opacity,
+ ph,
+ pv,
+ setColorScheme,
+ SIZE,
+ WEIGHT,
+} from '../../common/common';
+import {useTracked} from '../../provider';
+import {ACTIONS} from '../../provider/actions';
+import {eSendEvent} from '../../services/eventManager';
+import {
+ eClearSearch,
+ refreshNotesPage,
+ eOpenLoginDialog,
+} from '../../services/events';
import NavigationService from '../../services/NavigationService';
-import { sideMenuRef } from '../../utils/refs';
-import { db, DDS, hexToRGBA, ToastEvent } from '../../utils/utils';
-import { TimeSince } from './TimeSince';
+import {sideMenuRef} from '../../utils/refs';
+import {db, DDS, hexToRGBA, ToastEvent} from '../../utils/utils';
+import {TimeSince} from './TimeSince';
const AnimatedSafeAreaView = createAnimatableComponent(SafeAreaView);
@@ -20,7 +45,7 @@ export const Menu = ({
hide,
update = () => {},
noTextMode = false,
- onButtonLongPress = () => {}
+ onButtonLongPress = () => {},
}) => {
const [state, dispatch] = useTracked();
const {colors, tags, colorNotes, user, currentScreen, syncing} = state;
@@ -132,7 +157,7 @@ export const Menu = ({
{DDS.isTab && noTextMode ? (
<TouchableOpacity
onPress={() => {
- sideMenuRef.current?.openDrawer()
+ sideMenuRef.current?.openDrawer();
}}
style={{
alignItems: 'center',
@@ -538,12 +563,6 @@ export const Menu = ({
elevation: 2,
}}>
<Text
- onPress={async () => {
- //await db.sync();
- console.log(await db.sync(), 'SYNCED');
- dispatch({type: ACTIONS.NOTES});
- dispatch({type: ACTIONS.PINNED});
- }}
style={{
fontFamily: WEIGHT.regular,
color: 'white',
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index 60deaf4a0..6045f0f13 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -238,7 +238,7 @@ export class VaultDialog extends Component {
});
return;
} else {
- console.log('ERROR', e.message);
+
}
}