Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit fb5f59b

Browse files
Nuri/fix :Change tags from market news to market report (#2124)
* change tags from market news to market report * change weekly report tag to market report * remove comments
1 parent b5b51b6 commit fb5f59b

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

src/pages/academy/blog/posts/_style.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled, { css } from 'styled-components'
22
import { Box, Flex, Container } from 'components/containers'
3-
import { LocalizedLinkText, Text } from 'components/elements'
3+
import { LocalizedLinkText, Header, Text } from 'components/elements'
44
import device from 'themes/device'
55

66
export const Background = styled.div`
@@ -51,6 +51,11 @@ export const BreadcrumbsWrapper = styled(Container)`
5151
flex-direction: column;
5252
}
5353
`
54+
export const ArticleTitle = styled(Header)`
55+
@media ${device.desktopS} {
56+
font-size: 48px;
57+
}
58+
`
5459
export const HeroLeftWrapper = styled(Box)`
5560
max-width: 384px;
5661
margin-right: 24px;

src/pages/academy/blog/posts/preview/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useEffect, useState } from 'react'
22
import PropTypes from 'prop-types'
33
import {
4+
ArticleTitle,
45
Background,
56
HeroContainer,
67
BreadcrumbsWrapper,
@@ -33,7 +34,6 @@ import ArticleEmailBanner from '../../../components/_side-subscription-banner'
3334
import { localize, WithIntl } from 'components/localization'
3435
import Layout from 'components/layout/layout'
3536
import { SEO, Show, Box, Flex, SectionContainer } from 'components/containers'
36-
import { Header } from 'components/elements'
3737
import { convertDate, isBrowser } from 'common/utility'
3838
import { cms_assets_end_point } from 'common/constants'
3939
import RightArrow from 'images/svg/black-right-arrow.svg'
@@ -134,9 +134,9 @@ const BlogPreview = () => {
134134
{post_data?.published_date &&
135135
convertDate(post_data?.published_date)}
136136
</InfoText>
137-
<Header as="h1" type="page-title">
137+
<ArticleTitle as="h1" type="page-title">
138138
{post_data?.blog_title}
139-
</Header>
139+
</ArticleTitle>
140140
<InfoText size="14px" mt="16px">
141141
{post_data?.read_time_in_minutes &&
142142
post_data?.read_time_in_minutes +

src/pages/academy/components/_markets-news.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ const MarketNews = ({ data }) => {
8080
/>
8181
<Flex ml="8px" fd="column">
8282
<Header type="paragraph-2" color="blue-9">
83-
{/* We'll stick to just weekly report for phase 1 */}
84-
<StyledSpan>Weekly report</StyledSpan>
83+
<StyledSpan>Market report</StyledSpan>
8584
</Header>
8685
<Header mt="8px" type="paragraph-1" weight="bold">
8786
{truncateString(data.blog_title, 38)}

src/pages/academy/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const query = graphql`
3838
}
3939
market_news: blog(
4040
filter: {
41-
tags: { tags_id: { tag_name: { _contains: "Market News" } } }
41+
tags: { tags_id: { tag_name: { _contains: "Market report" } } }
4242
status: { _eq: "published" }
4343
}
4444
limit: 6
@@ -64,7 +64,7 @@ export const query = graphql`
6464
}
6565
market_news_eu: blog(
6666
filter: {
67-
tags: { tags_id: { tag_name: { _contains: "Market News" } } }
67+
tags: { tags_id: { tag_name: { _contains: "Market report" } } }
6868
status: { _eq: "published" }
6969
hide_for_eu: { _eq: false }
7070
}

src/templates/article.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
22
import PropTypes from 'prop-types'
33
import { graphql } from 'gatsby'
44
import {
5+
ArticleTitle,
56
Background,
67
HeroContainer,
78
BreadcrumbsWrapper,
@@ -34,7 +35,7 @@ import SocialSharing from '../pages/academy/components/_social-sharing'
3435
import { localize, WithIntl } from 'components/localization'
3536
import Layout from 'components/layout/layout'
3637
import { SEO, Show, Box, Flex, SectionContainer } from 'components/containers'
37-
import { Header, QueryImage } from 'components/elements'
38+
import { QueryImage } from 'components/elements'
3839
import { convertDate } from 'common/utility'
3940
import RightArrow from 'images/svg/black-right-arrow.svg'
4041

@@ -121,9 +122,9 @@ const ArticlesTemplate = (props) => {
121122
{post_data?.published_date &&
122123
convertDate(post_data?.published_date)}
123124
</InfoText>
124-
<Header as="h1" type="page-title">
125+
<ArticleTitle as="h1" type="page-title">
125126
{post_data?.blog_title}
126-
</Header>
127+
</ArticleTitle>
127128
<InfoText size="14px" mt="16px">
128129
{post_data?.read_time_in_minutes &&
129130
localize(post_data?.read_time_in_minutes + ' min read')}

0 commit comments

Comments
 (0)