diff --git a/src/ethereum/EthHashInfo/ethHashInfo.stories.tsx b/src/ethereum/EthHashInfo/ethHashInfo.stories.tsx
index 5ec2f8fc..d36a06a9 100644
--- a/src/ethereum/EthHashInfo/ethHashInfo.stories.tsx
+++ b/src/ethereum/EthHashInfo/ethHashInfo.stories.tsx
@@ -25,15 +25,24 @@ export const WithName = (): React.ReactElement => (
);
-export const WithIdenticon = (): React.ReactElement => (
-
+export const WithDefaultAvatar = (): React.ReactElement => (
+
+);
+
+export const WithCustomAvatar = (): React.ReactElement => (
+
);
export const WithButtons = (): React.ReactElement => (
({ alt: explorerUrlAlt, url: explorerUrl })}
shortenHash={4}
@@ -49,7 +58,7 @@ export const WithMenu = (): React.ReactElement => {
`
+ height: ${({ size, theme }) => theme.identicon.size[size]};
+ width: ${({ size, theme }) => theme.identicon.size[size]};
+ border-radius: 50%;
+`;
+
type Props = {
+ className?: string;
hash: string;
- textColor?: ThemeColors;
- textSize?: ThemeTextSize;
- identiconSize?: ThemeIdenticonSize;
shortenHash?: number;
- className?: string;
name?: string;
- showIdenticon?: boolean;
+ textColor?: ThemeColors;
+ textSize?: ThemeTextSize;
+ showAvatar?: boolean;
+ customAvatar?: string;
+ avatarSize?: ThemeIdenticonSize;
showCopyBtn?: boolean;
menuItems?: EllipsisMenuItem[];
explorerUrl?: ExplorerInfo;
@@ -58,19 +65,24 @@ const EthHashInfo = ({
name,
textColor = 'text',
textSize = 'lg',
- identiconSize = 'md',
className,
shortenHash,
- showIdenticon,
+ showAvatar,
+ customAvatar,
+ avatarSize = 'md',
showCopyBtn,
menuItems,
explorerUrl,
}: Props): React.ReactElement => (
- {showIdenticon && (
-
-
-
+ {showAvatar && (
+
+ {customAvatar ? (
+
+ ) : (
+
+ )}
+
)}