fix(client): changed the reset button in JS course (#49034)

* Re-worded reset code button in js lessons

* Made suggested changes in translation.json and lower-jaw.tsx

* Updated 'reset-step' translation
This commit is contained in:
Rahul Siloniya 2023-01-17 14:17:28 +05:30 committed by GitHub
parent 52a698ee57
commit 099dee75bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@
"check-code": "Check Your Code (Ctrl + Enter)",
"check-code-2": "Check Your Code",
"reset": "Reset",
"reset-code": "Reset All Code",
"reset-step": "Reset This Step",
"help": "Help",
"get-help": "Get Help",
"watch-video": "Watch a Video",

View File

@ -190,8 +190,8 @@ const LowerJaw = ({
<div className='lower-jaw-icon-bar'>
<button
className='btn fade-in'
title={t('buttons.reset-code')}
aria-label={t('buttons.reset-code')}
title={t('buttons.reset-step')}
aria-label={t('buttons.reset-step')}
data-cy='reset-code-button'
onClick={openResetModal}
>

View File

@ -101,7 +101,7 @@ function ToolPanel({
className='btn-invert'
onClick={openResetModal}
>
{isMobile ? t('buttons.reset') : t('buttons.reset-code')}
{isMobile ? t('buttons.reset') : t('buttons.reset-lesson')}
</Button>
)}
<DropdownButton