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
remove unused imports
ammarahm-ed487863da3197
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.jsindex 1c3945bc5..b487f45c8 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js@@ -1,19 +1,18 @@import React from 'react';-import {Platform} from 'react-native';-import {ScrollView} from 'react-native';-import {useTracked} from '../../provider';-import {DDS} from '../../services/DeviceDetection';+import { Platform } from 'react-native';+import { useTracked } from '../../provider';+import { DDS } from '../../services/DeviceDetection';import { hexToRGBA } from '../../utils/ColorUtils';import ActionSheet from '../ActionSheet';-import {GetPremium} from './GetPremium';+import { GetPremium } from './GetPremium';const ActionSheetWrapper = ({children,fwdRef,- gestureEnabled=true,+ gestureEnabled = true,onClose,onOpen,- closeOnTouchBackdrop=true+ closeOnTouchBackdrop = true,}) => {const [state] = useTracked();const {colors} = state;@@ -43,8 +42,8 @@ const ActionSheetWrapper = ({containerStyle={style}gestureEnabled={gestureEnabled}extraScroll={largeTablet ? 50 : 0}- initialOffsetFromBottom={1}- closeOnTouchBackdrop={closeOnTouchBackdrop}+ initialOffsetFromBottom={1}+ closeOnTouchBackdrop={closeOnTouchBackdrop}indicatorColor={Platform.OS === 'ios'? hexToRGBA(colors.accent + '19')diff --git a/apps/mobile/src/components/Premium/PendingDialog.js b/apps/mobile/src/components/Premium/PendingDialog.jsindex ce12403f2..8139964c0 100644--- a/apps/mobile/src/components/Premium/PendingDialog.js+++ b/apps/mobile/src/components/Premium/PendingDialog.js@@ -1,13 +1,9 @@-import React, {createRef} from 'react';-import {Platform, View} from 'react-native';-import {DDS} from '../../services/DeviceDetection';-import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';-import {dWidth} from '../../utils';-import {hexToRGBA} from '../../utils/ColorUtils';-import {db} from '../../utils/DB';-import {eClosePendingDialog, eOpenPendingDialog} from '../../utils/Events';-import {SIZE} from '../../utils/SizeUtils';-import ActionSheet from '../ActionSheet';+import React, { createRef } from 'react';+import { View } from 'react-native';+import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';+import { db } from '../../utils/DB';+import { eClosePendingDialog, eOpenPendingDialog } from '../../utils/Events';+import { SIZE } from '../../utils/SizeUtils';import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';import Seperator from '../Seperator';import Heading from '../Typography/Heading';diff --git a/apps/mobile/src/components/Premium/PremiumDialog.js b/apps/mobile/src/components/Premium/PremiumDialog.jsindex 8e2082d31..5f9226dce 100644--- a/apps/mobile/src/components/Premium/PremiumDialog.js+++ b/apps/mobile/src/components/Premium/PremiumDialog.js@@ -1,18 +1,15 @@-import React, {createRef} from 'react';-import {Platform, ScrollView, TouchableOpacity, View} from 'react-native';+import React, { createRef } from 'react';+import { Platform, ScrollView, TouchableOpacity, View } from 'react-native';import * as RNIap from 'react-native-iap';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';-import RNFetchBlob from 'rn-fetch-blob';-import {DDS} from '../../services/DeviceDetection';-import {eSendEvent, ToastEvent} from '../../services/EventManager';-import {dHeight, dWidth, itemSkus} from '../../utils';-import {hexToRGBA} from '../../utils/ColorUtils';-import {db} from '../../utils/DB';-import {eOpenLoginDialog, eOpenPendingDialog} from '../../utils/Events';-import {SIZE} from '../../utils/SizeUtils';-import ActionSheet from '../ActionSheet';+import { DDS } from '../../services/DeviceDetection';+import { eSendEvent } from '../../services/EventManager';+import { dHeight, itemSkus } from '../../utils';+import { db } from '../../utils/DB';+import { eOpenLoginDialog } from '../../utils/Events';+import { SIZE } from '../../utils/SizeUtils';import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';-import {Button} from '../Button';+import { Button } from '../Button';import Seperator from '../Seperator';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';@@ -24,7 +21,7 @@ class PremiumDialog extends React.Component {products: null,scrollEnabled: false,product: null,- visible: true,+ visible: false,};this.routeIndex = 0;this.count = 0;@@ -47,9 +44,7 @@ class PremiumDialog extends React.Component {this.actionSheetRef.current?._setModalVisible(false);}- componentDidMount() {- this.actionSheetRef.current?._setModalVisible(true);- }+async getSkus() {try {diff --git a/apps/mobile/src/components/SortDialog/index.js b/apps/mobile/src/components/SortDialog/index.jsindex a6d545f2a..e25def963 100644--- a/apps/mobile/src/components/SortDialog/index.js+++ b/apps/mobile/src/components/SortDialog/index.js@@ -1,22 +1,19 @@-import React, {createRef} from 'react';-import {Platform, 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 {DDS} from '../../services/DeviceDetection';-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 {dWidth, getElevation, SORT, sortSettings} from '../../utils';-import {hexToRGBA} from '../../utils/ColorUtils';-import {eCloseSortDialog, eOpenSortDialog} from '../../utils/Events';-import {MMKV} from '../../utils/mmkv';-import {SIZE} from '../../utils/SizeUtils';-import {sleep} from '../../utils/TimeUtils';-import ActionSheet from '../ActionSheet';+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';