diff --git a/apps/mobile/App.js b/apps/mobile/App.js index 468961c1f..b62f80bcc 100644 --- a/apps/mobile/App.js +++ b/apps/mobile/App.js @@ -53,7 +53,6 @@ let {width, height} = Dimensions.get('window'); const onAppStateChanged = async (state) => { if (state === 'active') { - console.log('active state'); StatusBar.setBarStyle( COLOR_SCHEME.night ? 'light-content' : 'dark-content', true, @@ -164,7 +163,6 @@ const App = () => { (async () => { try { await db.init(); - console.log('db is initialized'); } catch (e) { error = e; console.log(e, 'ERROR DB'); diff --git a/apps/mobile/RootView.js b/apps/mobile/RootView.js index 5157cdc64..2fcf144bf 100644 --- a/apps/mobile/RootView.js +++ b/apps/mobile/RootView.js @@ -29,7 +29,6 @@ import {getIntent, getNote, post} from './src/views/Editor/Functions'; let {width, height} = Dimensions.get('window'); const onChangeTab = async (obj) => { - console.log('tab changed'); if (obj.i === 1) { eSendEvent(eCloseSideMenu); if (getIntent()) return; diff --git a/apps/mobile/android/app/src/main/assets/constants.js b/apps/mobile/android/app/src/main/assets/constants.js index cd287f8a9..2605b6335 100644 --- a/apps/mobile/android/app/src/main/assets/constants.js +++ b/apps/mobile/android/app/src/main/assets/constants.js @@ -513,7 +513,7 @@ function fixDropdownMenuLocations() { document.getElementById(dropdown).style.top = downTop + 20; document.getElementById(dropdown).style.left = left; - //console.log('called',downTop + 20,left); + }); } } diff --git a/apps/mobile/html/Web.bundle/site/constants.js b/apps/mobile/html/Web.bundle/site/constants.js index 4ed677c83..190609f88 100644 --- a/apps/mobile/html/Web.bundle/site/constants.js +++ b/apps/mobile/html/Web.bundle/site/constants.js @@ -445,7 +445,7 @@ function fixDropdownMenuLocations() { if (!evt.target.offsetParent) { let _myLocalElement = evt.target.parentElement; - console.log(_myLocalElement) + var rect = _myLocalElement.getBoundingClientRect(); evtItemWidth = _myLocalElement.offsetParent.offsetWidth; evtItemHeight = _myLocalElement.offsetParent.offsetHeight; @@ -479,7 +479,6 @@ function fixDropdownMenuLocations() { left = left - (wDiff / 2); } - console.log('position changing') dropDownFixPosition( '.ql-picker-label', diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js index 60d666de0..9def51453 100644 --- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js +++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js @@ -45,7 +45,7 @@ export const ActionSheetTagsSection = ({item, close}) => { const _onSubmit = useCallback(async () => { if (!tagToAdd || tagToAdd === '' || tagToAdd.trimStart().length == 0) { - console.log('Calling submit', tagToAdd); + ToastEvent.show('Empty Tag', 'error', 'local'); return; } diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js index 54abef999..5f65abea7 100644 --- a/apps/mobile/src/components/ActionSheetComponent/index.js +++ b/apps/mobile/src/components/ActionSheetComponent/index.js @@ -424,13 +424,7 @@ export const ActionSheetComponent = ({ dispatch({type: Actions.ALL}); setRefreshing(false); } - } else { - console.log( - 'here', - user?.lastSynced, - user?.lastSynced < note?.dateEdited, - ); - } + } }; const onPressVaultButton = async () => { diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.js index b0ab9f25a..d6d55102b 100644 --- a/apps/mobile/src/components/AddNotebookDialog/index.js +++ b/apps/mobile/src/components/AddNotebookDialog/index.js @@ -64,7 +64,6 @@ export class AddNotebookDialog extends React.Component { if (index === 0) return; topicsList.push(item.title); }); - console.log(topicsList); this.id = toEdit.id; this.title = toEdit.title; this.description = toEdit.description; @@ -105,7 +104,7 @@ export class AddNotebookDialog extends React.Component { let edit = this.props.toEdit; if (edit && edit.id) { let topicToDelete = edit.topics[index + 1]; - console.log(topicToDelete); + if (topicToDelete) { this.topicsToDelete.push(topicToDelete.id); } @@ -432,7 +431,7 @@ export class AddNotebookDialog extends React.Component { { - console.log('here'); + this.prevIndex = index; this.prevItem = item; this.topicInputRef.setNativeProps({ diff --git a/apps/mobile/src/components/Container/ContainerBottomButton.js b/apps/mobile/src/components/Container/ContainerBottomButton.js index 7809134fb..cb76a8215 100644 --- a/apps/mobile/src/components/Container/ContainerBottomButton.js +++ b/apps/mobile/src/components/Container/ContainerBottomButton.js @@ -66,10 +66,6 @@ export const ContainerBottomButton = ({title, onPress, color,shouldShow =false}) ...getElevation(5), borderRadius: 100, }} - onLongPress={(event) => { - console.log(event); - showContext(event, title); - }} onPress={onPress}> { {DDS.isLargeTablet() && containerBottomButton.onPress ? (