From 68a7b50164bf56ec072bee21ddd45e832805ee74 Mon Sep 17 00:00:00 2001 From: Nikolai Berestevich Date: Mon, 12 Jul 2021 15:40:21 +0300 Subject: [PATCH] nikolai.berestevich/feat/update links to blog page --- src/components/custom/other-platforms.js | 6 +- src/components/elements/off-canvas-menu.js | 12 +--- src/components/layout/footer/main-links.js | 67 ++++++---------------- 3 files changed, 19 insertions(+), 66 deletions(-) diff --git a/src/components/custom/other-platforms.js b/src/components/custom/other-platforms.js index 9d646f1f56a..b1722cb3784 100644 --- a/src/components/custom/other-platforms.js +++ b/src/components/custom/other-platforms.js @@ -539,11 +539,7 @@ export const NavResources = ({ onClick }) => ( icon={() => blog} title={localize('Blog')} onClick={onClick} - to="" - type="blog" - external="true" - target="_blank" - rel="noopener noreferrer" + to="/blog" /> ) diff --git a/src/components/elements/off-canvas-menu.js b/src/components/elements/off-canvas-menu.js index 2e976d912f0..4380ad02402 100644 --- a/src/components/elements/off-canvas-menu.js +++ b/src/components/elements/off-canvas-menu.js @@ -501,21 +501,11 @@ export const OffCanvasMenuWrapper = (props) => { diagonal - +
blog
{localize('Blog')} - - diagonal -
{ +import { deriv_status_page_url } from 'common/constants' +const MainLinksSection = ({ is_ppc, is_ppc_redirect, is_eu_country }) => { return ( @@ -24,14 +21,10 @@ const MainLinksSection = ({is_ppc, is_ppc_redirect, is_eu_country }) => { {localize('Our leadership')} - - {localize('Why choose us?')} - + {localize('Why choose us?')} - - {localize('Partnership programmes')} - + {localize('Partnership programmes')} {localize('Contact us')} @@ -78,21 +71,15 @@ const MainLinksSection = ({is_ppc, is_ppc_redirect, is_eu_country }) => { Codestin Search App - - {localize('Margin trading')} - + {localize('Margin trading')} - - {localize('Options')} - + {localize('Options')} - - {localize('Multipliers')} - + {localize('Multipliers')} )} @@ -111,14 +98,10 @@ const MainLinksSection = ({is_ppc, is_ppc_redirect, is_eu_country }) => { )} - - {localize('Stock indices')} - + {localize('Stock indices')} - - {localize('Commodities')} - + {localize('Commodities')} @@ -126,9 +109,7 @@ const MainLinksSection = ({is_ppc, is_ppc_redirect, is_eu_country }) => { Codestin Search App - - {localize('Regulatory information')} - + {localize('Regulatory information')} @@ -151,9 +132,7 @@ const MainLinksSection = ({is_ppc, is_ppc_redirect, is_eu_country }) => { - - {localize('Payment agents')} - + {localize('Payment agents')} { - - {localize('Traders’ tools')} - + {localize('Traders’ tools')} - - {localize('Payment methods')} - + {localize('Payment methods')} { - - {localize('Blog')} - + {localize('Blog')} @@ -223,11 +190,11 @@ const MainLinksSection = ({is_ppc, is_ppc_redirect, is_eu_country }) => { ) } -export default MainLinksSection; +export default MainLinksSection MainLinksSection.propTypes = { is_eu_country: PropTypes.bool, is_ppc: PropTypes.bool, is_ppc_redirect: PropTypes.bool, type: PropTypes.string, -} \ No newline at end of file +}