mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
UX: Multichain: Use correct blockie or jazzicon in the account menu (#18782)
This commit is contained in:
parent
ab3e3976e6
commit
c9336a2ab5
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user