Skip to content

Commit

Permalink
Tweaked Variable/CRF display in Studies tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Jan 16, 2024
1 parent 7ab4b51 commit 7030677
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/components/search/concept-modal/tabs/studies/study-variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ export const StudyVariable = ({ variable, highlight, ...props }) => {
}
return (
<>
<div className="study-variables-list-item" {...props}>
Related to CDEs in <em>Tobacco, Alcohol, Prescription medications, and other Substance (TAPS)</em><Button
type="text"
size="small"
icon={
<ExportOutlined onClick={(e) => {
e.preventDefault()
e.stopPropagation()
window.open("https://heal.nih.gov/files/CDEs/2023-05/taps-cdes.xlsx", "_blank")
}}/>
}
style={{marginLeft: "4px"}}
/>
</div>
<div className="study-variables-list-item" {...props}>
<Text className="variable-name">
<Highlighter autoEscape={true} searchWords={highlight} textToHighlight={variable.name}/> &nbsp;
Expand All @@ -36,6 +22,21 @@ export const StudyVariable = ({ variable, highlight, ...props }) => {
<Text className="variable-description">
<Highlighter autoEscape={true} searchWords={highlight} textToHighlight={variable.description}/>
</Text>
<ul>
<li {...props}>
Related to CDEs in <em>Tobacco, Alcohol, Prescription medications, and other Substance (TAPS)</em><Button
type="text"
size="small"
icon={
<ExportOutlined onClick={(e) => {
e.preventDefault()
e.stopPropagation()
window.open("https://heal.nih.gov/files/CDEs/2023-05/taps-cdes.xlsx", "_blank")
}}/>
}
style={{marginLeft: "4px"}}
/></li>
</ul>
</div>
</>
)
Expand Down

0 comments on commit 7030677

Please sign in to comment.