File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from "react" ;
22import { connect } from "react-redux" ;
33
4- import ZoomedInHeadingTemplate from "../templates/ZoomedInHeading" ;
5- import ZoomedOutHeadingTemplate from "../templates/ZoomedOutHeading" ;
6-
74import {
85 BasicTitle ,
96 ProjectTitle ,
@@ -22,15 +19,31 @@ const Heading = ({
2219 streamgraph,
2320} ) => {
2421 if ( zoomed ) {
25- let label = streamgraph ? localization . area_streamgraph : localization . area ;
26-
27- return < ZoomedInHeadingTemplate label = { label } title = { bubbleTitle } /> ;
22+ const label = streamgraph
23+ ? localization . area_streamgraph
24+ : localization . area ;
25+
26+ return (
27+ // html template starts here
28+ < h4 >
29+ < span id = "area-bold" > { label } :</ span > { " " }
30+ < span
31+ id = "area-not-bold"
32+ dangerouslySetInnerHTML = { { __html : bubbleTitle } }
33+ > </ span >
34+ </ h4 >
35+ // html template ends here
36+ ) ;
2837 }
2938
3039 return (
31- < ZoomedOutHeadingTemplate >
32- { renderTitle ( localization , query , headingParams ) }
33- </ ZoomedOutHeadingTemplate >
40+ // html template starts here
41+ < div className = "heading-container" >
42+ < h4 className = "heading" >
43+ { renderTitle ( localization , query , headingParams ) }
44+ </ h4 >
45+ </ div >
46+ // html template ends here
3447 ) ;
3548} ;
3649
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments