From d4b5c01e99742c4bb0d48756e6257e2201e0c8e5 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Tue, 15 Jul 2025 20:36:55 +0530 Subject: [PATCH] fix(client): remove link from staging-warning (#61348) --- client/i18n/locales/english/translations.json | 2 +- .../src/components/staging-warning-modal/index.tsx | 14 ++------------ .../staging-warning-modal.test.tsx | 2 +- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index d5842ed93e2..d707713faca 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -1234,7 +1234,7 @@ "heading": "Warning: This is an early access test deployment", "p1": "We welcome you to try this platform in a test-only mode and get early access to upcoming features. Sometimes these changes are referred to as next, beta, staging, etc. interchangeably.", "p2": "We thank you for reporting bugs that you encounter and help in making freeCodeCamp.org better.", - "p3": "Your progress MAY NOT be saved on your next visit, and any certifications claimed on this deployment are not valid. Learn more by <0>following this link.", + "p3": "Your progress MAY NOT be saved on your next visit, and any certifications claimed on this deployment are not valid.", "certain": "Accept and Dismiss" }, "survey": { diff --git a/client/src/components/staging-warning-modal/index.tsx b/client/src/components/staging-warning-modal/index.tsx index 8eb47274fda..5017d415011 100644 --- a/client/src/components/staging-warning-modal/index.tsx +++ b/client/src/components/staging-warning-modal/index.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Trans, useTranslation } from 'react-i18next'; +import { useTranslation } from 'react-i18next'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; import store from 'store'; @@ -24,17 +24,7 @@ function StagingWarningModal(): JSX.Element {

{t('staging-warning.p1')}

{t('staging-warning.p2')}

-

- - - link - - -

+

{t('staging-warning.p3')}