File tree Expand file tree Collapse file tree 1 file changed +18
-12
lines changed
src/pages/Anywhere/AnywhereMap/MapChart Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -46,19 +46,25 @@ const MapChart = () => {
46
46
countryData && countryData . url . includes ( "coming-soon" ) ;
47
47
48
48
if ( countryData ) {
49
- // For target countries, add Tippy tooltip and click handler
50
- return (
51
- < Tippy key = { geo . rsmKey } content = { countryData . message } >
52
- < Link to = { countryData . url } >
53
- < Geography
54
- geography = { geo }
55
- style = { comingSoon ? comingSoonStyle : liveStyle }
56
- />
57
- </ Link >
58
- </ Tippy >
59
- ) ;
49
+ if ( ! comingSoon ) {
50
+ // TARGET COUNTRIES
51
+ return (
52
+ < Tippy key = { geo . rsmKey } content = { countryData . message } >
53
+ < Link to = { countryData . url } >
54
+ < Geography geography = { geo } style = { liveStyle } />
55
+ </ Link >
56
+ </ Tippy >
57
+ ) ;
58
+ } else {
59
+ // COMING SOON COUNTRIES
60
+ return (
61
+ < Tippy key = { geo . rsmKey } content = { countryData . message } >
62
+ < Geography geography = { geo } style = { comingSoonStyle } />
63
+ </ Tippy >
64
+ ) ;
65
+ }
60
66
} else {
61
- // Render non-target countries without Tippy and without click handler
67
+ // NON TARGET COUNTRIES
62
68
return (
63
69
< Geography
64
70
key = { geo . rsmKey }
You can’t perform that action at this time.
0 commit comments