Skip to content

Commit

Permalink
fix: remove logoSrc separator
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehr2github committed Mar 26, 2024
1 parent c805883 commit 6b41b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('<AssetDataListItem.Structure /> component', () => {
render(createTestComponent(props));
const elements = screen.queryAllByText('$0.00');
expect(elements.length).toBeGreaterThan(0); // assuming both asset price and changed price amount are 0.00
expect(screen.getByText('0%')).toBeInTheDocument(); // Assuming Tag component renders '0%' for zero changedPercentage
expect(screen.getByText('0%')).toBeInTheDocument(); // Assuming Tag component renders '0%' for zero priceChange
});

it('handle not passing priceChange', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const AssetDataListItemStructure: React.FC<IAssetDataListItemStructurePro
return (
<DataList.Item {...otherProps}>
<div className="flex gap-x-3 py-0 md:py-1.5">
<Avatar {...{ src: logoSrc }} size="md" />
<Avatar src={logoSrc} size="md" />
<div className=" flex w-full justify-between">
<div className="flex flex-col gap-y-0.5">
<span className="truncate text-sm leading-tight text-neutral-800 md:text-base">{name}</span>
Expand Down

0 comments on commit 6b41b22

Please sign in to comment.