fix(client): remove link from staging-warning (#61348)

This commit is contained in:
Mrugesh Mohapatra
2025-07-15 20:36:55 +05:30
committed by GitHub
parent 979e3ac4e6
commit d4b5c01e99
3 changed files with 4 additions and 14 deletions

View File

@@ -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</0>.",
"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": {

View File

@@ -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 {
<Modal.Body>
<p className='text-justify'>{t('staging-warning.p1')}</p>
<p className='text-justify'>{t('staging-warning.p2')}</p>
<p className='text-justify'>
<Trans i18nKey='staging-warning.p3'>
<a
href='https://contribute.freecodecamp.org/#/devops?id=known-limitations'
target='_blank'
rel='noopener noreferrer nofollow'
>
link
</a>
</Trans>
</p>
<p className='text-justify'>{t('staging-warning.p3')}</p>
<hr />
<Button
block={true}

View File

@@ -39,7 +39,7 @@ describe('StagingWarningModal', () => {
expect(modalContent).toHaveTextContent('staging-warning.heading');
expect(modalContent).toHaveTextContent('staging-warning.p1');
expect(modalContent).toHaveTextContent('staging-warning.p2');
expect(modalContent).toHaveTextContent('link');
expect(modalContent).toHaveTextContent('staging-warning.p3');
});
it('accepts Warning, stores acceptance key in local storage, and closes the modal', () => {