From f328f4b3c7ca735a579243b52c41283d754e79e1 Mon Sep 17 00:00:00 2001 From: Mihai Macaneata Date: Thu, 23 Jul 2020 10:45:31 +0300 Subject: [PATCH] tabschildview adapted for raw data --- src/components/theme/View/TabsChildView.jsx | 60 +++++++++++++++------ 1 file changed, 45 insertions(+), 15 deletions(-) diff --git a/src/components/theme/View/TabsChildView.jsx b/src/components/theme/View/TabsChildView.jsx index 926ee775..63d69fdb 100644 --- a/src/components/theme/View/TabsChildView.jsx +++ b/src/components/theme/View/TabsChildView.jsx @@ -77,7 +77,7 @@ const DefaultView = props => { }); return sidebar; }; - + console.log('aici', props.location.pathname); useEffect(() => { const sidebar = []; sidebar.push(...getSidebar(navigation.items?.[state.activeTab], 1)); @@ -90,18 +90,46 @@ const DefaultView = props => { return hasBlocksData(content) ? (
-
- -
+ {props.location.pathname.includes('/glossary') ? ( +
+ +
+ ) : props.location.pathname.includes('/raw-data') ? ( +
+
+

+ Raw data +

+

+ This section provides a close-up picture of air pollution from + various sources such as road transport, shipping, aviation, + domestic heating, agriculture and small business (diffuse + emissions). Pollution from diffuse sources occurs over large areas + from often indistinct elements. Although the large numbers of + houses and vehicles in cities represent many point sources, they + collectively represent a large, diffuse source of pollution. +

+
+
+ ) : ( + '' + )}