From af7f08bf1a5bf190a738a09108599c569de26411 Mon Sep 17 00:00:00 2001 From: Nahid Mahbub Date: Fri, 14 Jun 2019 01:59:12 +0600 Subject: [PATCH 1/2] fix links --- config/default.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/default.js b/config/default.js index 916b86241d..b87a8d4041 100644 --- a/config/default.js +++ b/config/default.js @@ -223,7 +223,7 @@ module.exports = { subMenu: [ { title: 'All challenges', - link: '/challenges', + href: '/challenges', }, { title: 'Competitive programming', @@ -296,7 +296,7 @@ module.exports = { ACCOUNT_MENU: [ { title: 'Settings', - link: '/settings/profile', + href: '/settings/profile', }, { title: 'Payments', From 12932a3c5c4778a5dd1484ef212e944d11cf1240 Mon Sep 17 00:00:00 2001 From: Nahid Mahbub Date: Fri, 14 Jun 2019 08:26:28 +0600 Subject: [PATCH 2/2] Addressed feedbacks --- .../shared/components/Header/__snapshots__/index.jsx.snap | 4 ++-- config/production.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/shared/components/Header/__snapshots__/index.jsx.snap b/__tests__/shared/components/Header/__snapshots__/index.jsx.snap index c5f2b22e08..e05f941d3a 100644 --- a/__tests__/shared/components/Header/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/Header/__snapshots__/index.jsx.snap @@ -19,7 +19,7 @@ exports[`Default render 1`] = ` Object { "subMenu": Array [ Object { - "link": "/challenges", + "href": "/challenges", "title": "All challenges", }, Object { @@ -94,7 +94,7 @@ exports[`Default render 1`] = ` accountMenu={ Array [ Object { - "link": "/settings/profile", + "href": "/settings/profile", "title": "Settings", }, Object { diff --git a/config/production.js b/config/production.js index 34fd09cbcb..a95e71ae5d 100644 --- a/config/production.js +++ b/config/production.js @@ -66,7 +66,7 @@ module.exports = { subMenu: [ { title: 'All challenges', - link: '/challenges', + href: '/challenges', }, { title: 'COMPETITIVE PROGRAMMING', @@ -139,7 +139,7 @@ module.exports = { ACCOUNT_MENU: [ { title: 'Settings', - link: '/settings/profile', + href: '/settings/profile', }, { title: 'Payments',