Skip to content

Commit 77d566b

Browse files
committed
Update component
1 parent c0d03fc commit 77d566b

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export const External: Story = {
6262
description:
6363
"The Lido DAO governs key parameters of Ethereum's largest liquid staking protocol using the voting power of LDO.",
6464
network: 'Ethereum',
65-
address: '0x0000000000000000000000000000000000000000',
6665
href: 'https://vote.lido.fi/',
6766
target: '_blank',
6867
isExternal: true,

src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ describe('<DaoDataListItemStructure /> component', () => {
4848
expect(screen.getByText(network)).toBeInTheDocument();
4949
});
5050

51-
it('hides the DAO ens and displays an external link icon when the isExternal property is set to true', () => {
51+
it('displays an external link icon when the isExternal property is set to true', () => {
5252
const isExternal = true;
53-
const ens = 'test-dao.eth';
54-
render(createTestComponent({ isExternal, ens }));
53+
render(createTestComponent({ isExternal }));
5554
expect(screen.getByTestId(IconType.LINK_EXTERNAL)).toBeInTheDocument();
56-
expect(screen.queryByText(ens)).not.toBeInTheDocument();
5755
});
5856
});

src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ export const DaoDataListItemStructure: React.FC<IDaoDataListItemStructureProps>
4646
<Heading size="h3" as="h2" className="truncate">
4747
{name}
4848
</Heading>
49-
{!isExternal && (
50-
<Heading size="h5" as="h3" className="truncate">
51-
{ens ?? truncatedAddress}
52-
</Heading>
53-
)}
49+
<Heading size="h5" as="h3" className="truncate">
50+
{ens ?? truncatedAddress}
51+
</Heading>
5452
</div>
5553
<DaoAvatar name={name} src={logoSrc} size="md" responsiveSize={{ md: 'lg' }} />
5654
</div>

0 commit comments

Comments
 (0)