Skip to content

Commit

Permalink
fix: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jun 4, 2024
1 parent 0550366 commit 131fbe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/components/UI/CollectibleContracts/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const RefreshTestId = 'refreshControl';

export default RefreshTestId;
3 changes: 2 additions & 1 deletion app/components/UI/CollectibleContracts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -330,7 +331,7 @@ const CollectibleContracts = ({
data={collectibleContracts}
renderItem={({ item, index }) => renderCollectibleContract(item, index)}
keyExtractor={(_, index) => index.toString()}
testID="refreshControl"
testID={RefreshTestId}
refreshControl={
<RefreshControl
colors={[colors.primary.default]}
Expand Down

0 comments on commit 131fbe8

Please sign in to comment.