mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): remove link from staging-warning (#61348)
This commit is contained in:
committed by
GitHub
parent
979e3ac4e6
commit
d4b5c01e99
@@ -1234,7 +1234,7 @@
|
|||||||
"heading": "Warning: This is an early access test deployment",
|
"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.",
|
"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.",
|
"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"
|
"certain": "Accept and Dismiss"
|
||||||
},
|
},
|
||||||
"survey": {
|
"survey": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Trans, useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Button, Modal, Spacer } from '@freecodecamp/ui';
|
import { Button, Modal, Spacer } from '@freecodecamp/ui';
|
||||||
|
|
||||||
import store from 'store';
|
import store from 'store';
|
||||||
@@ -24,17 +24,7 @@ function StagingWarningModal(): JSX.Element {
|
|||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<p className='text-justify'>{t('staging-warning.p1')}</p>
|
<p className='text-justify'>{t('staging-warning.p1')}</p>
|
||||||
<p className='text-justify'>{t('staging-warning.p2')}</p>
|
<p className='text-justify'>{t('staging-warning.p2')}</p>
|
||||||
<p className='text-justify'>
|
<p className='text-justify'>{t('staging-warning.p3')}</p>
|
||||||
<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>
|
|
||||||
<hr />
|
<hr />
|
||||||
<Button
|
<Button
|
||||||
block={true}
|
block={true}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ describe('StagingWarningModal', () => {
|
|||||||
expect(modalContent).toHaveTextContent('staging-warning.heading');
|
expect(modalContent).toHaveTextContent('staging-warning.heading');
|
||||||
expect(modalContent).toHaveTextContent('staging-warning.p1');
|
expect(modalContent).toHaveTextContent('staging-warning.p1');
|
||||||
expect(modalContent).toHaveTextContent('staging-warning.p2');
|
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', () => {
|
it('accepts Warning, stores acceptance key in local storage, and closes the modal', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user