From f6f03a5280243a3d83997ac3336e85af9c81f87d Mon Sep 17 00:00:00 2001 From: Cagdas U Date: Sat, 6 Jun 2020 02:03:08 +0300 Subject: [PATCH 1/2] refactor(dashboard): remove legacy links Remove `View Past SRMS` and `Past Challenges` links from dashboard. Closes topcoder-platform/community-app#4470 --- .../CurrentActivity/Challenges/index.jsx | 8 -------- .../CurrentActivity/Challenges/style.scss | 20 ------------------- src/shared/components/Dashboard/SRM/index.jsx | 3 --- 3 files changed, 31 deletions(-) diff --git a/src/shared/components/Dashboard/CurrentActivity/Challenges/index.jsx b/src/shared/components/Dashboard/CurrentActivity/Challenges/index.jsx index 1f8b75f1d7..f653268537 100644 --- a/src/shared/components/Dashboard/CurrentActivity/Challenges/index.jsx +++ b/src/shared/components/Dashboard/CurrentActivity/Challenges/index.jsx @@ -140,14 +140,6 @@ export default function Challenges({ /> -
- - Past Challenges - -
); } diff --git a/src/shared/components/Dashboard/CurrentActivity/Challenges/style.scss b/src/shared/components/Dashboard/CurrentActivity/Challenges/style.scss index a3fe268622..771ce5b0f6 100644 --- a/src/shared/components/Dashboard/CurrentActivity/Challenges/style.scss +++ b/src/shared/components/Dashboard/CurrentActivity/Challenges/style.scss @@ -21,26 +21,6 @@ } } -.link { - @include tc-body-md; - - &, - &:active, - &:focus, - &:visited { - color: $tc-dark-blue-110; - } - - &:hover { - color: $tc-dark-blue-70; - } -} - -.linksContainer { - padding: 30px 20px 0; - text-align: center; -} - .loading { margin: 40px 20px 30px; } diff --git a/src/shared/components/Dashboard/SRM/index.jsx b/src/shared/components/Dashboard/SRM/index.jsx index d3bdeeb270..9c267ca2cf 100644 --- a/src/shared/components/Dashboard/SRM/index.jsx +++ b/src/shared/components/Dashboard/SRM/index.jsx @@ -43,9 +43,6 @@ const SRM = (props) => {
- - View Past SRMS - Launch Arena From d4303a1b15079d6b149d08e4473e0397228b9842 Mon Sep 17 00:00:00 2001 From: Cagdas U Date: Sat, 6 Jun 2020 02:19:26 +0300 Subject: [PATCH 2/2] fix(tests): fix the failing test after removing legacy links --- .../components/Dashboard/SRM/__snapshots__/index.jsx.snap | 5 ----- 1 file changed, 5 deletions(-) diff --git a/__tests__/shared/components/Dashboard/SRM/__snapshots__/index.jsx.snap b/__tests__/shared/components/Dashboard/SRM/__snapshots__/index.jsx.snap index 8aefa3004f..e93e79feae 100644 --- a/__tests__/shared/components/Dashboard/SRM/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/Dashboard/SRM/__snapshots__/index.jsx.snap @@ -60,11 +60,6 @@ exports[`Matches shallow shapshot 1`] = `
- - View Past SRMS -