Skip to content

Commit b26f0c1

Browse files
authored
chore: sort imports (#2435)
1 parent 254c705 commit b26f0c1

File tree

352 files changed

+2567
-2572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+2567
-2572
lines changed

biome.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,5 @@
2828
"bracketSameLine": true,
2929
"quoteStyle": "single"
3030
}
31-
},
32-
"organizeImports": {
33-
"enabled": false
3431
}
3532
}

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
"e2e:test:ios-release": "detox test --configuration ios.release",
1818
"e2e:test:android-debug": "DEV=true detox test --configuration android.debug",
1919
"e2e:test:android-release": "detox test --configuration android.release",
20-
"format:check": "biome format ./src/**/*.{js,jsx,ts,tsx}",
21-
"format:fix": "biome format --write ./src/**/*.{js,jsx,ts,tsx}",
22-
"lint:check": "biome lint ./src/**/*.{js,jsx,ts,tsx}",
23-
"lint:fix": "biome lint --write ./src/**/*.{js,jsx,ts,tsx}",
20+
"lint:check": "biome check ./src/**/*.{js,jsx,ts,tsx}",
21+
"lint:fix": "biome check --write ./src/**/*.{js,jsx,ts,tsx}",
2422
"tsc:check": "tsc -p tsconfig.json --noEmit",
2523
"clean": "yarn clean:rn && yarn clean:ios && yarn clean:android && yarn start --reset-cache",
2624
"clean:rn": "watchman watch-del-all && npx del-cli node_modules && yarn && npx del-cli /tmp/metro-*",

src/AppOnboarded.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import React, { memo, ReactElement, useEffect, useRef } from 'react';
2-
import { AppState } from 'react-native';
31
import NetInfo from '@react-native-community/netinfo';
2+
import React, { memo, ReactElement, useEffect, useRef } from 'react';
43
import { useTranslation } from 'react-i18next';
4+
import { AppState } from 'react-native';
55

6-
import RootNavigator from './navigation/root/RootNavigator';
76
import InactivityTracker from './components/InactivityTracker';
8-
import { showToast } from './utils/notifications';
9-
import { startWalletServices } from './utils/startup';
10-
import { getOnChainWalletElectrumAsync } from './utils/wallet';
11-
import { unsubscribeFromLightningSubscriptions } from './utils/lightning';
127
import { useAppSelector } from './hooks/redux';
8+
import RootNavigator from './navigation/root/RootNavigator';
139
import { dispatch } from './store/helpers';
14-
import { updateUi } from './store/slices/ui';
15-
import { isOnlineSelector } from './store/reselect/ui';
1610
import {
1711
hideBalanceOnOpenSelector,
1812
pinOnLaunchSelector,
1913
pinSelector,
2014
} from './store/reselect/settings';
15+
import { isOnlineSelector } from './store/reselect/ui';
2116
import {
2217
selectedNetworkSelector,
2318
selectedWalletSelector,
2419
} from './store/reselect/wallet';
2520
import { updateSettings } from './store/slices/settings';
21+
import { updateUi } from './store/slices/ui';
22+
import { unsubscribeFromLightningSubscriptions } from './utils/lightning';
23+
import { showToast } from './utils/notifications';
24+
import { startWalletServices } from './utils/startup';
25+
import { getOnChainWalletElectrumAsync } from './utils/wallet';
2626
// import { updateExchangeRates } from './store/actions/wallet';
2727

2828
const AppOnboarded = (): ReactElement => {

src/Root.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { EventEmitter } from 'events';
12
import React, { ReactElement } from 'react';
2-
import { View, StyleSheet } from 'react-native';
3-
import { PersistGate } from 'redux-persist/integration/react';
4-
import { enableScreens, enableFreeze } from 'react-native-screens';
3+
import { StyleSheet, View } from 'react-native';
4+
import { enableFreeze, enableScreens } from 'react-native-screens';
55
import { Provider } from 'react-redux';
6-
import { EventEmitter } from 'events';
6+
import { PersistGate } from 'redux-persist/integration/react';
77

88
import App from './App';
99
import ErrorBoundary from './ErrorBoundary';

src/components/ActivityHeader.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ import {
77
ViewStyle,
88
} from 'react-native';
99

10-
import { EyeIcon } from '../styles/icons';
11-
import Money from './Money';
12-
import DetectSwipe from './DetectSwipe';
13-
import { useSwitchUnitAnnounced } from '../hooks/wallet';
1410
import { useAppDispatch, useAppSelector } from '../hooks/redux';
15-
import { updateSettings } from '../store/slices/settings';
11+
import { useSwitchUnitAnnounced } from '../hooks/wallet';
1612
import {
1713
enableSwipeToHideBalanceSelector,
1814
hideBalanceSelector,
1915
} from '../store/reselect/settings';
16+
import { updateSettings } from '../store/slices/settings';
17+
import { EyeIcon } from '../styles/icons';
18+
import DetectSwipe from './DetectSwipe';
19+
import Money from './Money';
2020

2121
const ActivityHeader = ({
2222
balance,

src/components/ActivityIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React, { ReactElement, useEffect, useMemo } from 'react';
21
import {
32
Canvas,
43
Path,
54
Skia,
65
SweepGradient,
76
vec,
87
} from '@shopify/react-native-skia';
8+
import React, { ReactElement, useEffect, useMemo } from 'react';
99
import Animated, {
1010
Easing,
1111
FadeIn,

src/components/AdjustValue.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React, { ReactElement, ReactNode } from 'react';
22
import {
3-
View,
4-
TouchableOpacity,
5-
StyleSheet,
63
StyleProp,
4+
StyleSheet,
5+
TouchableOpacity,
6+
View,
77
ViewStyle,
88
} from 'react-native';
9-
import { BodyMSB, BodySSB } from '../styles/text';
109
import { MinusCircledIcon, PlusCircledIcon } from '../styles/icons';
10+
import { BodyMSB, BodySSB } from '../styles/text';
1111

1212
type AdjustValueProps = {
1313
value: ReactNode;

src/components/Amount.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { ReactElement } from 'react';
2-
import { View, StyleSheet, StyleProp, ViewStyle } from 'react-native';
2+
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
33

4-
import { Display } from '../styles/text';
54
import { useCurrency } from '../hooks/displayValues';
65
import { EUnit } from '../store/types/wallet';
6+
import { Display } from '../styles/text';
77

88
const Amount = ({
99
value,

src/components/AmountToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { memo, ReactElement } from 'react';
22
import { StyleProp, StyleSheet, ViewStyle } from 'react-native';
33

4-
import { Pressable } from '../styles/components';
54
import Money from '../components/Money';
5+
import { Pressable } from '../styles/components';
66

77
/**
88
* Displays the total amount of sats specified and it's corresponding fiat value.

src/components/AuthCheck.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
import { RouteProp } from '@react-navigation/native';
12
import React, { memo, ReactElement, useState } from 'react';
23
import { StyleSheet } from 'react-native';
3-
import { useAppSelector } from '../hooks/redux';
4-
import { RouteProp } from '@react-navigation/native';
54
import Animated, { FadeOut } from 'react-native-reanimated';
5+
import { useAppSelector } from '../hooks/redux';
66

7+
import { biometricsSelector } from '../store/reselect/settings';
78
import { View as ThemedView } from '../styles/components';
89
import Biometrics from './Biometrics';
910
import PinPad from './PinPad';
10-
import { biometricsSelector } from '../store/reselect/settings';
1111

1212
type AuthCheckProps = {
1313
showBackNavigation?: boolean;

0 commit comments

Comments
 (0)