From ebd548e5facc22e387dd5f9c17e1bf3e1e185788 Mon Sep 17 00:00:00 2001 From: Joris Medeisis Date: Wed, 23 Jun 2021 13:07:15 +0300 Subject: [PATCH 1/5] Link to blog: Add link to blog website with translations --- public/locales/de/translations.json | 3 ++- public/locales/en/translations.json | 3 ++- public/locales/ru/translations.json | 3 ++- src/components/Footer/index.js | 7 +++++++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/public/locales/de/translations.json b/public/locales/de/translations.json index 895134b7b..beedc0f6f 100644 --- a/public/locales/de/translations.json +++ b/public/locales/de/translations.json @@ -27,7 +27,8 @@ "en": "Englisch", "de": "Deutsch", "ru": "Russisch", - "listcoin": "Bezahlte Kryptowährungsliste" + "listcoin": "Bezahlte Kryptowährungsliste", + "blog": "Blog" }, "hero": { "1": "Umtausch von Kryptowährungen", diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index 71b0fadf3..18027405c 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -83,7 +83,8 @@ "terms-and-conditions": "Terms and Conditions", "privacy-policy": "Privacy Policy", "pricecomparsion": "pricecomparsion", - "team": "Team" + "team": "Team", + "blog": "Blog" }, "account": { "account": "Account", diff --git a/public/locales/ru/translations.json b/public/locales/ru/translations.json index ad1248746..0c612ddba 100644 --- a/public/locales/ru/translations.json +++ b/public/locales/ru/translations.json @@ -24,7 +24,8 @@ "en": "Английский", "de": "Немецкий", "ru": "Русский", - "listcoin": "Размещение криптовалюты" + "listcoin": "Размещение криптовалюты", + "blog": "Блог" }, "hero": { "1": "Обмен Криптовалют", diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index deb2c2aaf..9b8de0cf7 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -61,6 +61,13 @@ const Footer = props => {
  • {t('header.apidocumentation')}
  • +
  • + + {t('header.blog')} + +
  • { From e5ab2dd31def3bf3813da0918e84be0397200232 Mon Sep 17 00:00:00 2001 From: Joris Medeisis Date: Fri, 25 Jun 2021 00:01:08 +0300 Subject: [PATCH 2/5] Blog integration: * add redirect to blog from react router --- src/App.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App.js b/src/App.js index 3d45a3852..5b800e328 100644 --- a/src/App.js +++ b/src/App.js @@ -81,6 +81,11 @@ const App = () => { return ; }; + + const redirectToBlog = () => { + window.location.replace(`${window.location.host}/blog`); + window.location.reload(); + } return ( @@ -95,6 +100,7 @@ const App = () => {
    + } /> From c9e27fab709b1ee326e90f4fb2bfd7d56e275d95 Mon Sep 17 00:00:00 2001 From: Joris Medeisis Date: Fri, 25 Jun 2021 00:55:37 +0300 Subject: [PATCH 3/5] Blog redirect remove exact restriction --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 5b800e328..3e83ee25e 100644 --- a/src/App.js +++ b/src/App.js @@ -100,7 +100,7 @@ const App = () => {
    - + } /> From 0d6125b15f17df8c3ab5471c985f07d54a73d93f Mon Sep 17 00:00:00 2001 From: Joris Medeisis Date: Fri, 25 Jun 2021 01:06:14 +0300 Subject: [PATCH 4/5] Blog redirect apply to subroutes --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3e83ee25e..f56048452 100644 --- a/src/App.js +++ b/src/App.js @@ -100,7 +100,7 @@ const App = () => {
    - + } /> From 35bd735df3180cbf2588ec502f241f78b9fcfdc5 Mon Sep 17 00:00:00 2001 From: Joris Medeisis Date: Fri, 25 Jun 2021 07:41:20 +0300 Subject: [PATCH 5/5] Blog redirect * refactor to exact path --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index f56048452..ab8e4272e 100644 --- a/src/App.js +++ b/src/App.js @@ -100,7 +100,7 @@ const App = () => {
    - + } />