Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Commits
044eefd7
Commit
044eefd7
authored
3 months ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
resuse annotation list
parent
8674290a
No related branches found
No related tags found
1 merge request
!340
Resolve "[MIN-251] Clicking on a protein: annotation"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Map/Drawer/SearchDrawerWrapper/BioEntitiesResultsList/BioEntitiesPinsList/BioEntitiesPinsListItem/BioEntitiesPinsListItem.component.tsx
+2
-16
2 additions, 16 deletions
...ntitiesPinsListItem/BioEntitiesPinsListItem.component.tsx
with
2 additions
and
16 deletions
src/components/Map/Drawer/SearchDrawerWrapper/BioEntitiesResultsList/BioEntitiesPinsList/BioEntitiesPinsListItem/BioEntitiesPinsListItem.component.tsx
+
2
−
16
View file @
044eefd7
...
@@ -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
>
);
);
};
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment