Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/safe-react-components",
"version": "2.0.0",
"version": "2.0.1",
"description": "Safe UI components",
"main": "dist/index.min.js",
"typings": "dist/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/components/EthHashInfo/EthHashInfo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import * as React from 'react';

import EthHashInfo from './';

export const Main = (): React.ReactElement => {
export const Main = ({ size }): React.ReactElement => {
return (
<EthHashInfo
avatarSize={size || null}
showPrefix
prefix="eth"
address="0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"
Expand Down Expand Up @@ -45,6 +46,10 @@ export const withCopyButton = (): React.ReactElement => {
);
};

export const withAvatarSize = (): React.ReactElement => {
return <Main size={100} />;
};

export default {
title: 'Components/EthHashInfo',
component: Main,
Expand Down
4 changes: 4 additions & 0 deletions src/components/EthHashInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ const AvatarContainer = styled('div')<{ size?: number }>(({ size }) => ({
flexShrink: 0,
width: size || '2.3em !important',
height: size || '2.3em !important',
'> *': {
width: '100% !important',
height: '100% !important',
},
}));

const AddressContainer = styled('div')({
Expand Down