1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

UX: Multichain: Use correct blockie or jazzicon in the account menu (#18782)

This commit is contained in:
David Walsh 2023-04-25 15:01:56 -05:00 committed by GitHub
parent ab3e3976e6
commit c9336a2ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ import {
ButtonIcon,
IconName,
IconSize,
AvatarAccountVariant,
} from '../../component-library';
import {
Color,
@ -70,6 +71,8 @@ export const AccountListItem = ({
const t = useI18nContext();
const [accountOptionsMenuOpen, setAccountOptionsMenuOpen] = useState(false);
const ref = useRef(false);
const useBlockie = useSelector((state) => state.metamask.useBlockie);
const keyring = useSelector((state) =>
findKeyringForAddress(state, identity.address),
);
@ -107,6 +110,11 @@ export const AccountListItem = ({
borderColor={BorderColor.transparent}
size={Size.SM}
address={identity.address}
variant={
useBlockie
? AvatarAccountVariant.Blockies
: AvatarAccountVariant.Jazzicon
}
></AvatarAccount>
<Box
display={DISPLAY.FLEX}