Skip to content

Commit

Permalink
feat(APP-2319): Allow ENS address on address list-item component (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgero-eth authored Jul 13, 2023
1 parent 190f2a1 commit 4573b60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Allow ENS address on address list-item component

### Added

- Workflows to deploy Storybook previews
Expand Down
4 changes: 2 additions & 2 deletions src/components/listItem/address.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { type ButtonHTMLAttributes, type FC } from 'react';
import styled from 'styled-components';

import { IsAddress, shortenAddress } from '../../utils/addresses';
import { shortenAddress } from '../../utils/addresses';
import { AvatarWallet } from '../avatar';
import { IconLinkExternal, IconPerson } from '../icons';

Expand Down Expand Up @@ -49,7 +49,7 @@ const Avatar: FC<AvatarProps> = ({ src }) => {
if (!src) {
return <IconPerson className="w-2.5 h-2.5" />;
}
return <AvatarWallet src={IsAddress(src) ? src : '0x0000000000000000000000000000000000000000'} />;
return <AvatarWallet src={src} />;
};

const Container = styled.button.attrs(() => {
Expand Down

0 comments on commit 4573b60

Please sign in to comment.