fix(client): clarify what progress reset includes (#54542)

This commit is contained in:
Huyen Nguyen
2024-04-29 13:09:44 +07:00
committed by GitHub
parent 20b6b83e99
commit b38ef48ed3
2 changed files with 13 additions and 3 deletions

View File

@@ -263,8 +263,12 @@
"nevermind": "Nevermind, I don't want to delete my account",
"certain": "I am 100% certain. Delete everything related to this account",
"reset-heading": "Reset My Progress",
"reset-p1": "This will really delete all of your progress, points, completed challenges, our records of your projects, any certifications you have, everything.",
"reset-p2": "We won't be able to recover any of it for you later, even if you change your mind.",
"reset-p1": "This will permanently delete and reset all of the following:",
"reset-item-1": "Your progress through each step/challenge (all completed challenges will be lost)",
"reset-item-2": "Any saved code, including partially completed challenges, and certification project code",
"reset-item-3": "All completed and claimed certifications",
"reset-p2": "You will effectively be set back to the very first day you signed up.",
"reset-p3": "We won't be able to recover any of it for you later, even if you change your mind.",
"nevermind-2": "Nevermind, I don't want to delete all of my progress",
"reset-confirm": "Reset everything. I want to start from the beginning"
},

View File

@@ -19,9 +19,15 @@ function ResetModal(props: ResetModalProps): JSX.Element {
<Modal.Header showCloseButton={true} closeButtonClassNames='close'>
{t('settings.danger.reset-heading')}
</Modal.Header>
<Modal.Body>
<Modal.Body alignment='start'>
<p>{t('settings.danger.reset-p1')}</p>
<ul>
<li>{t('settings.danger.reset-item-1')}</li>
<li>{t('settings.danger.reset-item-2')}</li>
<li>{t('settings.danger.reset-item-3')}</li>
</ul>
<p>{t('settings.danger.reset-p2')}</p>
<p>{t('settings.danger.reset-p3')}</p>
</Modal.Body>
<Modal.Footer>
<Button