From acf10e0c5442a3b04abb0034d56166b2971599ec Mon Sep 17 00:00:00 2001 From: Giovanni Bombassaro Date: Sun, 14 Feb 2021 17:16:37 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=20theme=20na=20vers=C3=A3o=20deprecate?= =?UTF-8?q?d=20do=20prensa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Templates/Columnists.js | 2 +- components/Templates/Featured.js | 2 +- components/Templates/GridNews.js | 2 +- components/Templates/Latest.js | 2 +- components/Templates/Related.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/Templates/Columnists.js b/components/Templates/Columnists.js index 72acdffd1..fbc998b41 100644 --- a/components/Templates/Columnists.js +++ b/components/Templates/Columnists.js @@ -9,7 +9,7 @@ import colors from '../../styles/variables/colors.json' const Columnists = ({content, domain, lazy, status, theme}) => { const {title} = content; - const {activeColor} = theme; + const {activeColor} = theme.colors.deprecatedActiveColor; const propsTemplate = {custom: 'templates-columnists', mb: '6', lg: {align: 'row between wrap', mb: '3'}}; return ( diff --git a/components/Templates/Featured.js b/components/Templates/Featured.js index 9c7b8044d..f4662d696 100644 --- a/components/Templates/Featured.js +++ b/components/Templates/Featured.js @@ -6,7 +6,7 @@ import Teaser from '../Teasers'; import colors from '../../styles/variables/colors.json' const Featured = ({content, domain, lazy, status, theme}) => { - const {activeColor} = theme; + const {activeColor} = theme.colors.deprecatedActiveColor; const {items} = content; if (items.length === 1) { return ( diff --git a/components/Templates/GridNews.js b/components/Templates/GridNews.js index e47f20329..97f16d4d1 100644 --- a/components/Templates/GridNews.js +++ b/components/Templates/GridNews.js @@ -8,7 +8,7 @@ import {SectionTitle} from '../Typography'; import colors from '../../styles/variables/colors.json' const GridNews = ({content, domain, lazy, status, theme}) => { - const {activeColor} = theme; + const {activeColor} = theme.colors.deprecatedActiveColor; const {items, title} = content; let items_pqueue = content['items-pqueue']; let items_list = items_pqueue && items_pqueue.length > 0 ? items_pqueue : items; diff --git a/components/Templates/Latest.js b/components/Templates/Latest.js index 2dd48fa58..e23f1e23c 100644 --- a/components/Templates/Latest.js +++ b/components/Templates/Latest.js @@ -9,7 +9,7 @@ import MostRead from './MostRead'; import colors from '../../styles/variables/colors.json' const Latest = ({content, domain, lazy, ReadMore, Title, status, theme}) => { - const {activeColor} = theme; + const {activeColor} = theme.colors.deprecatedActiveColor; const propsContainer = {custom: 'templates-latest-news', align: 'col left', w: '100p', md: {align: 'row between'}}; const propsPageLeft = {custom: 'page-left', mb: '6'}; const propsPageRight = {custom: 'page-right'}; diff --git a/components/Templates/Related.js b/components/Templates/Related.js index 53993c9b0..595e90656 100644 --- a/components/Templates/Related.js +++ b/components/Templates/Related.js @@ -7,7 +7,7 @@ import Teaser from '../Teasers'; import colors from '../../styles/variables/colors.json' const Related = ({items, domain, lazy, ReadMore, status, theme}) => { - const {activeColor} = theme; + const {activeColor} = theme.colors.deprecatedActiveColor; const propsContainer = {custom: 'templates-related-news', align: 'col left', w: '100p'}; return (