-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Platform]: Add ClinVar widget to variant page #447
Conversation
return sentenceCase(clinicalSignificances[0]); | ||
} | ||
return ( | ||
<ul |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need ul
and li
tags here ? i can find example in preview link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the approach in packages/sections/src/evidence/EVA
. (See the preview with 15_90088702_C_T for an example with more than one significance on a row.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can replace ul
and li
with Box
as it will take care of showing element in next line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
"" | ||
)} | ||
{ | ||
diseaseFromSource && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try simplifying this logic as well, avoid using nested conditions specially ternary operator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified similar to above comments. Logic inside the tooltip is a little ugly but not sure alternatives are any cleaner?
Description
Add ClinVar widget to variant page.
Issue: #3318
Preview: https://deploy-preview-447--ot-platform.netlify.app/variant/4_1804392_G_A
Note: builds on PR #441.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checked on dev.
Checklist: