diff --git a/src/Countries.jsx b/src/Countries.jsx index db41613..0d5ed19 100644 --- a/src/Countries.jsx +++ b/src/Countries.jsx @@ -196,12 +196,12 @@ export default function Countries({ mapOptions, onMapOptionClick }) {

{currentParameter.label} в {currentYear.label} году

- {info.power_fact_mw != null && + {info[currentParameter.value] != null && - @@ -221,7 +221,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) { - @@ -231,7 +231,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) { - @@ -241,7 +241,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) { - @@ -251,7 +251,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) { - @@ -261,7 +261,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) { - @@ -271,7 +271,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) { - diff --git a/src/Regions.jsx b/src/Regions.jsx index d6181a2..ad20189 100644 --- a/src/Regions.jsx +++ b/src/Regions.jsx @@ -243,12 +243,12 @@ export default function Regions({ mapOptions, onMapOptionClick }) {

{currentParameter.label} в {currentYear.label} году

{currentTech.label} + {info[currentParameter.value].toFixed(1).replace(".", ",")}
Солнечные электростанции + {info.static_power_fact_solar_mw.toFixed(1).replace(".", ",")}
Наземные ветроэлектростанции + {info.static_power_fact_onshore_mw.toFixed(1).replace(".", ",")}
Офшорные ветроэлектростанции + {info.static_power_fact_offshore_mw.toFixed(1).replace(".", ",")}
Всего ВИЭ (включая СЭС, ВЭС, ГЭС, БиоЭС, ГеоЭС) + {info.static_power_fact_res_mw.toFixed(1).replace(".", ",")}
Доля всей ВИЭ-генерации в балансе мощности страны, % + {info.static_res_share_power.toFixed(1).replace(".", ",")}
Доля СЭС и ВЭС в балансе мощности страны, % + {info.static_solar_wind_share_power.toFixed(1).replace(".", ",")}
- {info.power_fact_mw != null && + {info[currentParameter.value] != null && - @@ -267,7 +267,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) { - @@ -277,7 +277,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) { - @@ -287,7 +287,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) { - @@ -297,7 +297,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) { - @@ -307,7 +307,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) { - @@ -317,7 +317,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) { -
{currentTech.label}, {currentSupport.label} + {info[currentParameter.value].toFixed(1).replace(".", ",")}
Солнечные электростанции + {info.static_power_fact_solar_mw.toFixed(1).replace(".", ",")}
Ветроэлектростанции + {info.static_power_fact_wind_mw.toFixed(1).replace(".", ",")}
Малые гидроэлектростанции + {info.static_power_fact_shydro_mw.toFixed(1).replace(".", ",")}
Другие объекты ВИЭ-генерации + {info.static_power_fact_other_mw.toFixed(1).replace(".", ",")}
Всего ВИЭ + {info.static_power_fact_res_mw.toFixed(1).replace(".", ",")}
Доля всех ВИЭ в балансе мощности региона, % + {info.static_res_share_power.toFixed(1).replace(".", ",")}