mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
remove unused imports
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Platform } from 'react-native';
|
||||
import {ScrollView} from 'react-native';
|
||||
import { useTracked } from '../../provider';
|
||||
import { DDS } from '../../services/DeviceDetection';
|
||||
import { hexToRGBA } from '../../utils/ColorUtils';
|
||||
@@ -13,7 +12,7 @@ const ActionSheetWrapper = ({
|
||||
gestureEnabled = true,
|
||||
onClose,
|
||||
onOpen,
|
||||
closeOnTouchBackdrop=true
|
||||
closeOnTouchBackdrop = true,
|
||||
}) => {
|
||||
const [state] = useTracked();
|
||||
const {colors} = state;
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import React, { createRef } from 'react';
|
||||
import {Platform, View} from 'react-native';
|
||||
import {DDS} from '../../services/DeviceDetection';
|
||||
import { View } from 'react-native';
|
||||
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 ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||
import Seperator from '../Seperator';
|
||||
import Heading from '../Typography/Heading';
|
||||
|
||||
@@ -2,15 +2,12 @@ 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 { eSendEvent } from '../../services/EventManager';
|
||||
import { dHeight, itemSkus } from '../../utils';
|
||||
import { db } from '../../utils/DB';
|
||||
import {eOpenLoginDialog, eOpenPendingDialog} from '../../utils/Events';
|
||||
import { eOpenLoginDialog } from '../../utils/Events';
|
||||
import { SIZE } from '../../utils/SizeUtils';
|
||||
import ActionSheet from '../ActionSheet';
|
||||
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||
import { Button } from '../Button';
|
||||
import Seperator from '../Seperator';
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
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 { 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 SettingsService from '../../services/SettingsService';
|
||||
import {dWidth, getElevation, SORT, sortSettings} from '../../utils';
|
||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
||||
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 ActionSheet from '../ActionSheet';
|
||||
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||
import { updateEvent } from '../DialogManager/recievers';
|
||||
import { PressableButton } from '../PressableButton';
|
||||
|
||||
Reference in New Issue
Block a user