@@ -59,15 +59,13 @@ import {
5959} from 'app/shared/route/types' ;
6060import AlterationTableTabs from 'app/pages/annotationPage/AlterationTableTabs' ;
6161import { getGeneTypeSentence } from './GeneInfo' ;
62- import GeneAdditionalInfoTable from 'app/pages/genePage/GeneAdditionalInfoTable' ;
6362import OncokbLollipopPlot from './OncokbLollipopPlot' ;
6463import { getUniqueFdaImplications } from 'app/pages/annotationPage/Utils' ;
6564import ShowHideText from 'app/shared/texts/ShowHideText' ;
6665import { AnnotationType } from 'app/pages/annotationPage/AnnotationPage' ;
6766import SummaryWithRefs from 'app/oncokb-frontend-commons/src/components/SummaryWithRefs' ;
68- import { findLast , upperFirst } from 'app/shared/utils/LodashUtils' ;
67+ import { upperFirst } from 'app/shared/utils/LodashUtils' ;
6968import { Helmet } from 'react-helmet-async' ;
70- import { NcbiLink } from 'app/shared/links/NcbiLink' ;
7169import GeneAliasesDescription from 'app/shared/texts/GeneAliasesDescription' ;
7270import { COLOR_GREY , COLOR_SOMATIC } from 'app/config/theme' ;
7371import GeneticTypeTabs , {
@@ -83,6 +81,7 @@ import MiniNavBarHeader from 'app/shared/nav/MiniNavBarHeader';
8381import { GenomicIndicatorTable } from 'app/pages/genePage/GenomicIndicatorTable' ;
8482import GeneticTypeTag from 'app/components/tag/GeneticTypeTag' ;
8583import { SomaticGermlineGeneInfoTiles } from 'app/shared/tiles/tile-utils' ;
84+ import GeneAdditionalInfoSection from 'app/shared/sections/GeneAdditionalInfoSection' ;
8685
8786interface MatchParams {
8887 hugoSymbol : string ;
@@ -588,41 +587,12 @@ export default class SomaticGermlineGenePage extends React.Component<
588587 this . store . gene . result . geneType
589588 ) }
590589 </ h5 >
591- < div className = { 'd-flex' } >
592- < NcbiLink
593- entrezGeneId = {
594- this . store . gene . result . entrezGeneId
595- }
596- />
597- < span className = { 'mx-2' } > |</ span >
598- < ShowHideText
599- show = { this . showAdditionalGeneInfo }
600- title = { 'additional gene information' }
601- content = { '' }
602- onClick = { this . toggleAdditionalGeneInfo }
603- />
604- </ div >
605- { this . showAdditionalGeneInfo && (
606- < Row className = { 'mt-2' } >
607- < Col lg = { 6 } md = { 8 } xs = { 12 } >
608- < GeneAdditionalInfoTable
609- gene = { this . store . gene . result }
610- grch37ensemblGene = { findLast (
611- this . store . ensemblGenes . result ,
612- item =>
613- item . referenceGenome ===
614- REFERENCE_GENOME . GRCh37
615- ) }
616- grch38ensemblGene = { findLast (
617- this . store . ensemblGenes . result ,
618- item =>
619- item . referenceGenome ===
620- REFERENCE_GENOME . GRCh38
621- ) }
622- />
623- </ Col >
624- </ Row >
625- ) }
590+ < GeneAdditionalInfoSection
591+ gene = { this . store . gene . result }
592+ ensemblGenes = { this . store . ensemblGenes . result }
593+ show = { this . showAdditionalGeneInfo }
594+ onToggle = { this . toggleAdditionalGeneInfo }
595+ />
626596 { this . store . geneSummary . result && (
627597 < div className = "mt-2" >
628598 < SummaryWithRefs
0 commit comments