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,19 +1,18 @@
|
|||||||
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';
|
||||||
import ActionSheet from '../ActionSheet';
|
import ActionSheet from '../ActionSheet';
|
||||||
import {GetPremium} from './GetPremium';
|
import { GetPremium } from './GetPremium';
|
||||||
|
|
||||||
const ActionSheetWrapper = ({
|
const ActionSheetWrapper = ({
|
||||||
children,
|
children,
|
||||||
fwdRef,
|
fwdRef,
|
||||||
gestureEnabled=true,
|
gestureEnabled = true,
|
||||||
onClose,
|
onClose,
|
||||||
onOpen,
|
onOpen,
|
||||||
closeOnTouchBackdrop=true
|
closeOnTouchBackdrop = true,
|
||||||
}) => {
|
}) => {
|
||||||
const [state] = useTracked();
|
const [state] = useTracked();
|
||||||
const {colors} = state;
|
const {colors} = state;
|
||||||
@@ -43,8 +42,8 @@ const ActionSheetWrapper = ({
|
|||||||
containerStyle={style}
|
containerStyle={style}
|
||||||
gestureEnabled={gestureEnabled}
|
gestureEnabled={gestureEnabled}
|
||||||
extraScroll={largeTablet ? 50 : 0}
|
extraScroll={largeTablet ? 50 : 0}
|
||||||
initialOffsetFromBottom={1}
|
initialOffsetFromBottom={1}
|
||||||
closeOnTouchBackdrop={closeOnTouchBackdrop}
|
closeOnTouchBackdrop={closeOnTouchBackdrop}
|
||||||
indicatorColor={
|
indicatorColor={
|
||||||
Platform.OS === 'ios'
|
Platform.OS === 'ios'
|
||||||
? hexToRGBA(colors.accent + '19')
|
? hexToRGBA(colors.accent + '19')
|
||||||
|
|||||||
@@ -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 { db } from '../../utils/DB';
|
||||||
import {dWidth} from '../../utils';
|
import { eClosePendingDialog, eOpenPendingDialog } from '../../utils/Events';
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
import { SIZE } from '../../utils/SizeUtils';
|
||||||
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 ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||||
import Seperator from '../Seperator';
|
import Seperator from '../Seperator';
|
||||||
import Heading from '../Typography/Heading';
|
import Heading from '../Typography/Heading';
|
||||||
|
|||||||
@@ -1,18 +1,15 @@
|
|||||||
import React, {createRef} from 'react';
|
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 } from '../../services/EventManager';
|
||||||
import {eSendEvent, ToastEvent} from '../../services/EventManager';
|
import { dHeight, itemSkus } from '../../utils';
|
||||||
import {dHeight, dWidth, itemSkus} from '../../utils';
|
import { db } from '../../utils/DB';
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
import { eOpenLoginDialog } from '../../utils/Events';
|
||||||
import {db} from '../../utils/DB';
|
import { SIZE } from '../../utils/SizeUtils';
|
||||||
import {eOpenLoginDialog, eOpenPendingDialog} from '../../utils/Events';
|
|
||||||
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';
|
||||||
import Heading from '../Typography/Heading';
|
import Heading from '../Typography/Heading';
|
||||||
import Paragraph from '../Typography/Paragraph';
|
import Paragraph from '../Typography/Paragraph';
|
||||||
@@ -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,22 +1,19 @@
|
|||||||
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';
|
||||||
import Seperator from '../Seperator';
|
import Seperator from '../Seperator';
|
||||||
import Heading from '../Typography/Heading';
|
import Heading from '../Typography/Heading';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user