mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
remove unused imports
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Platform } from 'react-native';
|
import { Platform } from 'react-native';
|
||||||
import {ScrollView} from 'react-native';
|
|
||||||
import { useTracked } from '../../provider';
|
import { useTracked } from '../../provider';
|
||||||
import { DDS } from '../../services/DeviceDetection';
|
import { DDS } from '../../services/DeviceDetection';
|
||||||
import { hexToRGBA } from '../../utils/ColorUtils';
|
import { hexToRGBA } from '../../utils/ColorUtils';
|
||||||
@@ -13,7 +12,7 @@ const ActionSheetWrapper = ({
|
|||||||
gestureEnabled = true,
|
gestureEnabled = true,
|
||||||
onClose,
|
onClose,
|
||||||
onOpen,
|
onOpen,
|
||||||
closeOnTouchBackdrop=true
|
closeOnTouchBackdrop = true,
|
||||||
}) => {
|
}) => {
|
||||||
const [state] = useTracked();
|
const [state] = useTracked();
|
||||||
const {colors} = state;
|
const {colors} = state;
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
import React, { createRef } from 'react';
|
import React, { createRef } from 'react';
|
||||||
import {Platform, View} from 'react-native';
|
import { View } from 'react-native';
|
||||||
import {DDS} from '../../services/DeviceDetection';
|
|
||||||
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
|
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
|
||||||
import {dWidth} from '../../utils';
|
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
|
||||||
import { db } from '../../utils/DB';
|
import { db } from '../../utils/DB';
|
||||||
import { eClosePendingDialog, eOpenPendingDialog } from '../../utils/Events';
|
import { eClosePendingDialog, eOpenPendingDialog } from '../../utils/Events';
|
||||||
import { SIZE } from '../../utils/SizeUtils';
|
import { SIZE } from '../../utils/SizeUtils';
|
||||||
import ActionSheet from '../ActionSheet';
|
|
||||||
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||||
import Seperator from '../Seperator';
|
import Seperator from '../Seperator';
|
||||||
import Heading from '../Typography/Heading';
|
import Heading from '../Typography/Heading';
|
||||||
|
|||||||
@@ -2,15 +2,12 @@ import React, {createRef} from 'react';
|
|||||||
import { Platform, ScrollView, TouchableOpacity, View } from 'react-native';
|
import { Platform, ScrollView, TouchableOpacity, View } from 'react-native';
|
||||||
import * as RNIap from 'react-native-iap';
|
import * as RNIap from 'react-native-iap';
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
import RNFetchBlob from 'rn-fetch-blob';
|
|
||||||
import { DDS } from '../../services/DeviceDetection';
|
import { DDS } from '../../services/DeviceDetection';
|
||||||
import {eSendEvent, ToastEvent} from '../../services/EventManager';
|
import { eSendEvent } from '../../services/EventManager';
|
||||||
import {dHeight, dWidth, itemSkus} from '../../utils';
|
import { dHeight, itemSkus } from '../../utils';
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
|
||||||
import { db } from '../../utils/DB';
|
import { db } from '../../utils/DB';
|
||||||
import {eOpenLoginDialog, eOpenPendingDialog} from '../../utils/Events';
|
import { eOpenLoginDialog } from '../../utils/Events';
|
||||||
import { SIZE } from '../../utils/SizeUtils';
|
import { SIZE } from '../../utils/SizeUtils';
|
||||||
import ActionSheet from '../ActionSheet';
|
|
||||||
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||||
import { Button } from '../Button';
|
import { Button } from '../Button';
|
||||||
import Seperator from '../Seperator';
|
import Seperator from '../Seperator';
|
||||||
@@ -24,7 +21,7 @@ class PremiumDialog extends React.Component {
|
|||||||
products: null,
|
products: null,
|
||||||
scrollEnabled: false,
|
scrollEnabled: false,
|
||||||
product: null,
|
product: null,
|
||||||
visible: true,
|
visible: false,
|
||||||
};
|
};
|
||||||
this.routeIndex = 0;
|
this.routeIndex = 0;
|
||||||
this.count = 0;
|
this.count = 0;
|
||||||
@@ -47,9 +44,7 @@ class PremiumDialog extends React.Component {
|
|||||||
this.actionSheetRef.current?._setModalVisible(false);
|
this.actionSheetRef.current?._setModalVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
this.actionSheetRef.current?._setModalVisible(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
async getSkus() {
|
async getSkus() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,19 +1,16 @@
|
|||||||
import React, { createRef } from 'react';
|
import React, { createRef } from 'react';
|
||||||
import {Platform, TouchableOpacity, View} from 'react-native';
|
import { TouchableOpacity, View } from 'react-native';
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
import { notesnook } from '../../../e2e/test.ids';
|
import { notesnook } from '../../../e2e/test.ids';
|
||||||
import { Actions } from '../../provider/Actions';
|
import { Actions } from '../../provider/Actions';
|
||||||
import { defaultState } from '../../provider/DefaultState';
|
import { defaultState } from '../../provider/DefaultState';
|
||||||
import {DDS} from '../../services/DeviceDetection';
|
|
||||||
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
|
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
|
||||||
import SettingsService from '../../services/SettingsService';
|
import SettingsService from '../../services/SettingsService';
|
||||||
import {dWidth, getElevation, SORT, sortSettings} from '../../utils';
|
import { getElevation, SORT, sortSettings } from '../../utils';
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
|
||||||
import { eCloseSortDialog, eOpenSortDialog } from '../../utils/Events';
|
import { eCloseSortDialog, eOpenSortDialog } from '../../utils/Events';
|
||||||
import { MMKV } from '../../utils/mmkv';
|
import { MMKV } from '../../utils/mmkv';
|
||||||
import { SIZE } from '../../utils/SizeUtils';
|
import { SIZE } from '../../utils/SizeUtils';
|
||||||
import { sleep } from '../../utils/TimeUtils';
|
import { sleep } from '../../utils/TimeUtils';
|
||||||
import ActionSheet from '../ActionSheet';
|
|
||||||
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||||
import { updateEvent } from '../DialogManager/recievers';
|
import { updateEvent } from '../DialogManager/recievers';
|
||||||
import { PressableButton } from '../PressableButton';
|
import { PressableButton } from '../PressableButton';
|
||||||
|
|||||||
Reference in New Issue
Block a user