From c85f9c69a647906ada515c4ed437ca84c5afcb23 Mon Sep 17 00:00:00 2001 From: thoreyjona Date: Thu, 11 Jul 2024 12:35:39 +0000 Subject: [PATCH] fix: order of imports --- apps/native/app/src/screens/applications/applications.tsx | 2 +- apps/native/app/src/screens/more/more.tsx | 2 +- apps/native/app/src/screens/wallet/wallet.tsx | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/native/app/src/screens/applications/applications.tsx b/apps/native/app/src/screens/applications/applications.tsx index 0f5a71146055..63723209843b 100644 --- a/apps/native/app/src/screens/applications/applications.tsx +++ b/apps/native/app/src/screens/applications/applications.tsx @@ -10,6 +10,7 @@ import { View, } from 'react-native' import { NavigationFunctionComponent } from 'react-native-navigation' +import { useNavigationComponentDidAppear } from 'react-native-navigation-hooks' import illustrationSrc from '../../assets/illustrations/le-company-s3.png' import { BottomTabsIndicator } from '../../components/bottom-tabs-indicator/bottom-tabs-indicator' import { @@ -25,7 +26,6 @@ import { useBrowser } from '../../lib/useBrowser' import { getApplicationOverviewUrl } from '../../utils/applications-utils' import { testIDs } from '../../utils/test-ids' import { ApplicationsModule } from '../home/applications-module' -import { useNavigationComponentDidAppear } from 'react-native-navigation-hooks' import { isIos } from '../../utils/devices' type ListItem = diff --git a/apps/native/app/src/screens/more/more.tsx b/apps/native/app/src/screens/more/more.tsx index 864e98121e1b..94062b785efb 100644 --- a/apps/native/app/src/screens/more/more.tsx +++ b/apps/native/app/src/screens/more/more.tsx @@ -8,6 +8,7 @@ import { TouchableHighlight, } from 'react-native' import { NavigationFunctionComponent } from 'react-native-navigation' +import { useNavigationComponentDidAppear } from 'react-native-navigation-hooks' import styled, { useTheme } from 'styled-components/native' import assetsIcon from '../../assets/icons/assets.png' import familyIcon from '../../assets/icons/family.png' @@ -23,7 +24,6 @@ import { formatNationalId } from '../../lib/format-national-id' import { useAuthStore } from '../../stores/auth-store' import { testIDs } from '../../utils/test-ids' import { getRightButtons } from '../../utils/get-main-root' -import { useNavigationComponentDidAppear } from 'react-native-navigation-hooks' import { isIos } from '../../utils/devices' const Row = styled.View` diff --git a/apps/native/app/src/screens/wallet/wallet.tsx b/apps/native/app/src/screens/wallet/wallet.tsx index 3ed6d77a0e69..92c34efb44c5 100644 --- a/apps/native/app/src/screens/wallet/wallet.tsx +++ b/apps/native/app/src/screens/wallet/wallet.tsx @@ -13,6 +13,7 @@ import { import { NavigationFunctionComponent } from 'react-native-navigation' import SpotlightSearch from 'react-native-spotlight-search' import { useTheme } from 'styled-components/native' +import { useNavigationComponentDidAppear } from 'react-native-navigation-hooks' import illustrationSrc from '../../assets/illustrations/le-moving-s6.png' import { BottomTabsIndicator } from '../../components/bottom-tabs-indicator/bottom-tabs-indicator' @@ -25,16 +26,13 @@ import { useListLicensesQuery, } from '../../graphql/types/schema' import { createNavigationOptionHooks } from '../../hooks/create-navigation-option-hooks' -import { useActiveTabItemPress } from '../../hooks/use-active-tab-item-press' import { useConnectivityIndicator } from '../../hooks/use-connectivity-indicator' import { usePreferencesStore } from '../../stores/preferences-store' -import { ButtonRegistry } from '../../utils/component-registry' import { isIos } from '../../utils/devices' import { getRightButtons } from '../../utils/get-main-root' import { isDefined } from '../../utils/is-defined' import { testIDs } from '../../utils/test-ids' import { WalletItem } from './components/wallet-item' -import { useNavigationComponentDidAppear } from 'react-native-navigation-hooks' type FlatListItem = | GenericUserLicense