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
573c76ba
Commit
573c76ba
authored
3 months ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
hide synonyms and references header if no data available
parent
c45a9971
No related branches found
Branches containing commit
No related tags found
1 merge request
!342
Resolve "[MIN-252] Process annotation: consistency in how it looks in comparison to 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
+24
-19
24 additions, 19 deletions
...ntitiesPinsListItem/BioEntitiesPinsListItem.component.tsx
with
24 additions
and
19 deletions
src/components/Map/Drawer/SearchDrawerWrapper/BioEntitiesResultsList/BioEntitiesPinsList/BioEntitiesPinsListItem/BioEntitiesPinsListItem.component.tsx
+
24
−
19
View file @
573c76ba
...
...
@@ -17,6 +17,7 @@ import { resetReactionsData } from '@/redux/reactions/reactions.slice';
import
{
getSearchData
}
from
'
@/redux/search/search.thunks
'
;
import
{
twMerge
}
from
'
tailwind-merge
'
;
import
{
getTypeBySBOTerm
}
from
'
@/utils/bioEntity/getTypeBySBOTerm
'
;
import
{
ZERO
}
from
'
@/constants/common
'
;
import
{
PinListBioEntity
}
from
'
./BioEntitiesPinsListItem.types
'
;
import
{
isPinWithCoordinates
}
from
'
./BioEntitiesPinsListItem.utils
'
;
...
...
@@ -99,25 +100,29 @@ export const BioEntitiesPinsListItem = ({
</
span
>
</
p
>
)
}
<
p
className
=
"font-bold leading-6"
>
Synonyms:
<
span
className
=
"w-full font-normal"
>
{
pin
.
synonyms
.
join
(
'
,
'
)
}
</
span
>
</
p
>
<
ul
className
=
"leading-6"
>
<
div
className
=
"font-bold"
>
References:
</
div
>
{
pin
.
references
.
map
(
reference
=>
{
return
(
<
li
key
=
{
reference
.
id
}
className
=
"my-2 px-2"
>
<
a
href
=
{
reference
.
link
?
reference
.
link
:
undefined
}
target
=
"_blank"
className
=
"cursor-pointer text-primary-500 underline"
>
{
reference
.
type
}
(
{
reference
.
resource
}
)
</
a
>
</
li
>
);
})
}
</
ul
>
{
pin
.
synonyms
.
length
>
ZERO
&&
(
<
p
className
=
"font-bold leading-6"
>
Synonyms:
<
span
className
=
"w-full font-normal"
>
{
pin
.
synonyms
.
join
(
'
,
'
)
}
</
span
>
</
p
>
)
}
{
pin
.
references
.
length
>
ZERO
&&
(
<
ul
className
=
"leading-6"
>
<
div
className
=
"font-bold"
>
References:
</
div
>
{
pin
.
references
.
map
(
reference
=>
{
return
(
<
li
key
=
{
reference
.
id
}
className
=
"my-2 px-2"
>
<
a
href
=
{
reference
.
link
?
reference
.
link
:
undefined
}
target
=
"_blank"
className
=
"cursor-pointer text-primary-500 underline"
>
{
reference
.
type
}
(
{
reference
.
resource
}
)
</
a
>
</
li
>
);
})
}
</
ul
>
)
}
</
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