Skip to content

Commit e1ca0b1

Browse files
committed
remove unnecessary prop drilling
1 parent e59819e commit e1ca0b1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/mobile-app/app/(drawer)/account/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ export default function Balances() {
310310
? getIronAsset.data.verification.logoURI
311311
: undefined
312312
}
313-
forceHideBalance={hideBalances}
314313
/>
315314

316315
{/* Custom Assets */}
@@ -338,7 +337,6 @@ export default function Balances() {
338337
? asset.verification.logoURI
339338
: undefined
340339
}
341-
forceHideBalance={hideBalances}
342340
/>
343341
);
344342
})}

packages/mobile-app/components/account/AssetRow.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ export function AssetRow({
88
amount,
99
verified,
1010
image,
11-
forceHideBalance,
1211
}: {
1312
name: string;
1413
amount: string;
1514
verified: boolean;
1615
image?: string;
17-
forceHideBalance?: boolean;
1816
}) {
19-
const hideBalancesGlobal = useHideBalances();
20-
const hideBalances =
21-
forceHideBalance !== undefined ? forceHideBalance : hideBalancesGlobal;
17+
const hideBalances = useHideBalances();
2218

2319
return (
2420
<Card style={styles.assetCard}>

0 commit comments

Comments
 (0)