@@ -34,6 +34,7 @@ import classnames from 'classnames';
34
34
import SmallPageContainer from 'app/components/SmallPageContainer' ;
35
35
import InfoIcon from 'app/shared/icons/InfoIcon' ;
36
36
import DocumentTitle from 'react-document-title' ;
37
+ import { MutationEffectResp } from 'app/shared/api/generated/OncoKbPrivateAPI' ;
37
38
38
39
enum SummaryKey {
39
40
GENE_SUMMARY = 'geneSummary' ,
@@ -53,7 +54,7 @@ const SUMMARY_TITLE = {
53
54
54
55
const AlterationInfo : React . FunctionComponent < {
55
56
oncogenicity : string ;
56
- mutationEffect : string ;
57
+ mutationEffect : MutationEffectResp ;
57
58
isVus : boolean ;
58
59
highestSensitiveLevel : string | undefined ;
59
60
highestResistanceLevel : string | undefined ;
@@ -72,7 +73,21 @@ const AlterationInfo: React.FunctionComponent<{
72
73
) ;
73
74
}
74
75
if ( props . mutationEffect ) {
75
- content . push ( < span key = "mutationEffect" > { props . mutationEffect } </ span > ) ;
76
+ content . push (
77
+ < span >
78
+ < span key = "mutationEffect" > { props . mutationEffect . knownEffect } </ span >
79
+ < DefaultTooltip
80
+ overlay = { ( ) => (
81
+ < CitationTooltip
82
+ pmids = { props . mutationEffect . citations . pmids }
83
+ abstracts = { props . mutationEffect . citations . abstracts }
84
+ />
85
+ ) }
86
+ >
87
+ < i className = "fa fa-book mx-1" style = { { fontSize : '0.8em' } } > </ i >
88
+ </ DefaultTooltip >
89
+ </ span >
90
+ ) ;
76
91
}
77
92
if ( props . highestSensitiveLevel || props . highestResistanceLevel ) {
78
93
content . push (
@@ -226,6 +241,7 @@ export default class GenePage extends React.Component<
226
241
props . original . citations . pmids . length ;
227
242
return (
228
243
< DefaultTooltip
244
+ placement = { 'left' }
229
245
overlay = { ( ) => (
230
246
< CitationTooltip
231
247
pmids = { props . original . citations . pmids }
@@ -280,9 +296,7 @@ export default class GenePage extends React.Component<
280
296
</ h2 >
281
297
< AlterationInfo
282
298
oncogenicity = { this . store . annotationResult . result . oncogenic }
283
- mutationEffect = {
284
- this . store . annotationResult . result . mutationEffect . knownEffect
285
- }
299
+ mutationEffect = { this . store . annotationResult . result . mutationEffect }
286
300
isVus = { this . store . annotationResult . result . vus }
287
301
highestSensitiveLevel = {
288
302
this . store . annotationResult . result . highestSensitiveLevel
0 commit comments