Skip to content

Commit

Permalink
address brians feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Nov 4, 2024
1 parent 00ce5b9 commit c694dc1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions app/components/UI/WalletAction/WalletAction.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Third party dependencies.
import React, { useMemo } from 'react';
import React from 'react';
import { TouchableOpacity, View } from 'react-native';
import { lightTheme } from '@metamask/design-tokens';

Expand Down Expand Up @@ -33,14 +33,6 @@ const WalletAction = ({
const { colors } = lightTheme;
const { styles } = useStyles(styleSheet, {});

const avatarStyle = useMemo(
() => ({
...iconStyle,
backgroundColor: disabled ? colors.primary.muted : colors.primary.default,
}),
[disabled, colors, iconStyle],
);

const touchableStyles = [
styles.base,
containerStyle,
Expand All @@ -57,9 +49,10 @@ const WalletAction = ({
>
<Avatar
variant={AvatarVariant.Icon}
style={avatarStyle}
style={iconStyle}
size={iconSize}
name={iconName}
backgroundColor={colors.primary.default}
iconColor={colors.background.default}
/>
<View>
Expand Down

0 comments on commit c694dc1

Please sign in to comment.