Skip to content

Commit

Permalink
Address PR comments and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Oct 15, 2024
1 parent 3557e63 commit a3e466a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions ui/components/app/snaps/snap-ui-address/snap-ui-address.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useMemo } from 'react';
import { useSelector } from 'react-redux';
import {
CaipAccountId,
isHexString,
Expand All @@ -19,7 +18,7 @@ export type SnapUIAddressProps = {
// The address must be a CAIP-10 string.
address: string;
// This is not currently exposed to Snaps.
avatarSize?: string;
avatarSize?: 'xs' | 'sm' | 'md' | 'lg';
};

export const SnapUIAddress: React.FunctionComponent<SnapUIAddressProps> = ({
Expand Down
10 changes: 5 additions & 5 deletions ui/components/app/snaps/snap-ui-avatar/snap-ui-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import Jazzicon from '../../../ui/jazzicon';
import { getUseBlockie } from '../../../../selectors';

export const DIAMETERS: Record<string, number> = {
'xs': 16,
'sm': 24,
'md': 32,
'lg': 40,
xs: 16,
sm: 24,
md: 32,
lg: 40,
};

export type SnapUIAvatarProps = {
// The address must be a CAIP-10 string.
address: string;
size?: string;
size?: 'xs' | 'sm' | 'md' | 'lg';
};

export const SnapUIAvatar: React.FunctionComponent<SnapUIAvatarProps> = ({
Expand Down

0 comments on commit a3e466a

Please sign in to comment.