@@ -35,11 +35,11 @@ interface StandardListEntryProps {
3535 showKeywords : boolean ;
3636 showLocation : boolean ;
3737 showAuthors : boolean ;
38+ showArea : boolean ;
3839 service : ServiceType ;
3940 paper : AllPossiblePapersType ;
4041 isContentBased : boolean ;
4142 isInStreamBacklink : boolean ;
42- isStreamgraph : boolean ;
4343 baseUnit : SortValuesType ;
4444 handleBacklinkClick : ( ) => void ;
4545}
@@ -58,10 +58,10 @@ const StandardListEntry: FC<StandardListEntryProps> = ({
5858 showKeywords,
5959 showLocation,
6060 showAuthors,
61+ showArea,
6162 showMetrics,
6263 isContentBased,
6364 baseUnit,
64- isStreamgraph,
6565 showBacklink,
6666 isInStreamBacklink,
6767 showDocTags,
@@ -132,7 +132,7 @@ const StandardListEntry: FC<StandardListEntryProps> = ({
132132
133133 { showCitations && < Citations number = { citations } label = { baseUnit } /> }
134134 < PaperButtons paper = { paper } />
135- { ! isStreamgraph && < Area paper = { paper } isShort = { showCitations } /> }
135+ { showArea && < Area paper = { paper } isShort = { showCitations } /> }
136136 { ! ! backlink . show && (
137137 < EntryBacklink
138138 onClick = { backlink . onClick }
@@ -153,7 +153,6 @@ const mapStateToProps = (state: State) => ({
153153 showKeywords :
154154 state . list . showKeywords &&
155155 ( ! ! state . selectedPaper || ! state . list . hideUnselectedKeywords ) ,
156- isStreamgraph : state . chartType === STREAMGRAPH_MODE ,
157156 showBacklink : state . chartType === STREAMGRAPH_MODE && ! ! state . selectedPaper ,
158157 isInStreamBacklink : ! ! state . selectedBubble ,
159158 showDocTags : state . service === "base" || state . service === "orcid" ,
@@ -164,6 +163,8 @@ const mapStateToProps = (state: State) => ({
164163 ! ! state . selectedPaper ,
165164 service : state . service ,
166165 showAuthors : state . chartType !== GEOMAP_MODE ,
166+ showArea :
167+ state . chartType !== STREAMGRAPH_MODE && state . chartType !== GEOMAP_MODE ,
167168} ) ;
168169
169170export default connect (
0 commit comments