Skip to content
Snippets Groups Projects
Commit 044eefd7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

resuse annotation list

parent 8674290a
No related branches found
No related tags found
1 merge request!340Resolve "[MIN-251] Clicking on a protein: annotation"
...@@ -18,8 +18,8 @@ import { getSearchData } from '@/redux/search/search.thunks'; ...@@ -18,8 +18,8 @@ import { getSearchData } from '@/redux/search/search.thunks';
import { twMerge } from 'tailwind-merge'; import { twMerge } from 'tailwind-merge';
import { getTypeBySBOTerm } from '@/utils/bioEntity/getTypeBySBOTerm'; import { getTypeBySBOTerm } from '@/utils/bioEntity/getTypeBySBOTerm';
import { ZERO } from '@/constants/common'; import { ZERO } from '@/constants/common';
import { AnnotationItem } from '@/components/Map/Drawer/BioEntityDrawer/AnnotationItem';
import React from 'react'; import React from 'react';
import { AnnotationItemList } from '@/components/Map/Drawer/BioEntityDrawer/AnnotationItem/AnnotationItemList.component';
import { PinListBioEntity } from './BioEntitiesPinsListItem.types'; import { PinListBioEntity } from './BioEntitiesPinsListItem.types';
import { isPinWithCoordinates } from './BioEntitiesPinsListItem.utils'; import { isPinWithCoordinates } from './BioEntitiesPinsListItem.utils';
...@@ -107,21 +107,7 @@ export const BioEntitiesPinsListItem = ({ ...@@ -107,21 +107,7 @@ export const BioEntitiesPinsListItem = ({
Synonyms: <span className="w-full font-normal">{pin.synonyms.join(', ')}</span> Synonyms: <span className="w-full font-normal">{pin.synonyms.join(', ')}</span>
</p> </p>
)} )}
{pin.references.length > ZERO && ( <AnnotationItemList references={pin.references} />
<ul className="leading-6">
<div className="font-bold">References:</div>
{pin.references.map(reference => (
<li key={reference.id} className="ml-3">
<AnnotationItem
key={reference.id}
type={reference.type}
link={reference.link}
resource={reference.resource}
/>
</li>
))}
</ul>
)}
</div> </div>
); );
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment