From 131fbe83369c66d6d614ab3ae3f67a42a88e4f77 Mon Sep 17 00:00:00 2001 From: sahar-fehri Date: Tue, 4 Jun 2024 10:24:07 +0200 Subject: [PATCH] fix: minor refactor --- app/components/UI/CollectibleContracts/constants.ts | 3 +++ app/components/UI/CollectibleContracts/index.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 app/components/UI/CollectibleContracts/constants.ts diff --git a/app/components/UI/CollectibleContracts/constants.ts b/app/components/UI/CollectibleContracts/constants.ts new file mode 100644 index 00000000000..8d33e4b7a69 --- /dev/null +++ b/app/components/UI/CollectibleContracts/constants.ts @@ -0,0 +1,3 @@ +const RefreshTestId = 'refreshControl'; + +export default RefreshTestId; diff --git a/app/components/UI/CollectibleContracts/index.js b/app/components/UI/CollectibleContracts/index.js index cebf6dd82d9..e79b07deb1b 100644 --- a/app/components/UI/CollectibleContracts/index.js +++ b/app/components/UI/CollectibleContracts/index.js @@ -44,6 +44,7 @@ import { NFT_TAB_CONTAINER_ID, } from '../../../../wdio/screen-objects/testIDs/Screens/WalletView.testIds'; import { useMetrics } from '../../../components/hooks/useMetrics'; +import RefreshTestId from './constants'; const createStyles = (colors) => StyleSheet.create({ @@ -330,7 +331,7 @@ const CollectibleContracts = ({ data={collectibleContracts} renderItem={({ item, index }) => renderCollectibleContract(item, index)} keyExtractor={(_, index) => index.toString()} - testID="refreshControl" + testID={RefreshTestId} refreshControl={