Skip to content

Commit 2090738

Browse files
committed
fixup! Overlay styling for "Wallet Paused"
1 parent 5d6fcc1 commit 2090738

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

src/components/themed/WalletListCurrencyRow.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ const WalletListCurrencyRowComponent = (props: Props) => {
5555

5656
return (
5757
<TouchableOpacity accessible={false} style={styles.row} onLongPress={handleLongPress} onPress={handlePress}>
58+
{customAsset != null ? (
59+
<CustomAssetRow customAsset={customAsset} />
60+
) : (
61+
<CurrencyRow showRate={showRate && !isPaused} token={token} tokenId={tokenId} wallet={wallet} />
62+
)}
5863
{isPaused ? (
5964
<>
6065
<View style={styles.overlayLabelContainer}>
@@ -63,11 +68,6 @@ const WalletListCurrencyRowComponent = (props: Props) => {
6368
<View style={styles.overlayContainer} />
6469
</>
6570
) : null}
66-
{customAsset != null ? (
67-
<CustomAssetRow customAsset={customAsset} />
68-
) : (
69-
<CurrencyRow showRate={showRate && !isPaused} token={token} tokenId={tokenId} wallet={wallet} />
70-
)}
7171
</TouchableOpacity>
7272
)
7373
}
@@ -79,15 +79,11 @@ const getStyles = cacheStyles((theme: Theme) => ({
7979
overlayLabelContainer: {
8080
...StyleSheet.absoluteFillObject,
8181
alignItems: 'center',
82-
display: 'flex',
83-
justifyContent: 'center',
84-
zIndex: 2
82+
justifyContent: 'center'
8583
},
8684
overlayContainer: {
8785
...StyleSheet.absoluteFillObject,
88-
backgroundColor: theme.overlayDisabledColor,
89-
opacity: theme.overlayDisabledOpacity,
90-
zIndex: 1
86+
backgroundColor: theme.overlayDisabledColor
9187
},
9288
row: {
9389
alignItems: 'center',

src/theme/variables/edgeDark.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ export const edgeDark: Theme = {
329329
underlayOpacity: 0.95,
330330

331331
// TouchableHighlights overlay
332-
overlayDisabledColor: palette.black,
333-
overlayDisabledOpacity: 0.5,
332+
overlayDisabledColor: palette.blackOp50,
334333
overlayDisabledTextColor: palette.white,
335334

336335
// Tutorials

src/theme/variables/edgeLight.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ export const edgeLight: Theme = {
329329
underlayOpacity: 0.95,
330330

331331
// TouchableHighlights overlay
332-
overlayDisabledColor: palette.black,
333-
overlayDisabledOpacity: 0.5,
332+
overlayDisabledColor: palette.blackOp50,
334333
overlayDisabledTextColor: palette.white,
335334

336335
// Tutorials

src/types/Theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ export interface Theme {
330330

331331
// TouchableHighlights overlay
332332
overlayDisabledColor: string
333-
overlayDisabledOpacity: number
334333
overlayDisabledTextColor: string
335334

336335
// Tutorials

0 commit comments

Comments
 (0)