Skip to content

Commit

Permalink
fixup! Overlay styling for "Wallet Paused"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-edge committed Oct 20, 2023
1 parent 5d6fcc1 commit 2090738
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
18 changes: 7 additions & 11 deletions src/components/themed/WalletListCurrencyRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ const WalletListCurrencyRowComponent = (props: Props) => {

return (
<TouchableOpacity accessible={false} style={styles.row} onLongPress={handleLongPress} onPress={handlePress}>
{customAsset != null ? (
<CustomAssetRow customAsset={customAsset} />
) : (
<CurrencyRow showRate={showRate && !isPaused} token={token} tokenId={tokenId} wallet={wallet} />
)}
{isPaused ? (
<>
<View style={styles.overlayLabelContainer}>
Expand All @@ -63,11 +68,6 @@ const WalletListCurrencyRowComponent = (props: Props) => {
<View style={styles.overlayContainer} />
</>
) : null}
{customAsset != null ? (
<CustomAssetRow customAsset={customAsset} />
) : (
<CurrencyRow showRate={showRate && !isPaused} token={token} tokenId={tokenId} wallet={wallet} />
)}
</TouchableOpacity>
)
}
Expand All @@ -79,15 +79,11 @@ const getStyles = cacheStyles((theme: Theme) => ({
overlayLabelContainer: {
...StyleSheet.absoluteFillObject,
alignItems: 'center',
display: 'flex',
justifyContent: 'center',
zIndex: 2
justifyContent: 'center'
},
overlayContainer: {
...StyleSheet.absoluteFillObject,
backgroundColor: theme.overlayDisabledColor,
opacity: theme.overlayDisabledOpacity,
zIndex: 1
backgroundColor: theme.overlayDisabledColor
},
row: {
alignItems: 'center',
Expand Down
3 changes: 1 addition & 2 deletions src/theme/variables/edgeDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ export const edgeDark: Theme = {
underlayOpacity: 0.95,

// TouchableHighlights overlay
overlayDisabledColor: palette.black,
overlayDisabledOpacity: 0.5,
overlayDisabledColor: palette.blackOp50,
overlayDisabledTextColor: palette.white,

// Tutorials
Expand Down
3 changes: 1 addition & 2 deletions src/theme/variables/edgeLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ export const edgeLight: Theme = {
underlayOpacity: 0.95,

// TouchableHighlights overlay
overlayDisabledColor: palette.black,
overlayDisabledOpacity: 0.5,
overlayDisabledColor: palette.blackOp50,
overlayDisabledTextColor: palette.white,

// Tutorials
Expand Down
1 change: 0 additions & 1 deletion src/types/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ export interface Theme {

// TouchableHighlights overlay
overlayDisabledColor: string
overlayDisabledOpacity: number
overlayDisabledTextColor: string

// Tutorials
Expand Down

0 comments on commit 2090738

Please sign in to comment.