diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json
index 9a1cae4d2da..66ee8a7dac8 100644
--- a/client/i18n/locales/english/translations.json
+++ b/client/i18n/locales/english/translations.json
@@ -52,6 +52,8 @@
"create-post": "Create a help post on the forum",
"cancel": "Cancel",
"reset-lesson": "Reset this lesson",
+ "revert": "Revert",
+ "revert-to-saved-code": "Revert to Saved Code",
"run": "Run",
"run-test": "Run the Tests (Ctrl + Enter)",
"check-code": "Check Your Code",
@@ -420,6 +422,7 @@
"reset": "Reset this lesson?",
"reset-warn": "Are you sure you wish to reset this lesson? The editors and tests will be reset.",
"reset-warn-2": "This cannot be undone.",
+ "revert-warn": "Are you sure you wish to revert this lesson? Your latest changes will be undone and the code reverted to the most recently saved version.",
"scrimba-tip": "Tip: If the mini-browser is covering the code, click and drag to move it. Also, feel free to stop and edit the code in the video at any time.",
"chal-preview": "Challenge Preview",
"donation-record-not-found": "Your donation record has not been found.",
diff --git a/client/src/templates/Challenges/classic/show.tsx b/client/src/templates/Challenges/classic/show.tsx
index 37658f649a6..98ddec58bcd 100644
--- a/client/src/templates/Challenges/classic/show.tsx
+++ b/client/src/templates/Challenges/classic/show.tsx
@@ -522,7 +522,7 @@ function ShowClassic({
-
+ void;
isOpen: boolean;
+ challengeType: number;
reset: () => void;
}
@@ -35,7 +37,12 @@ function withActions(...fns: Array<() => void>) {
return () => fns.forEach(fn => fn());
}
-function ResetModal({ reset, close, isOpen }: ResetModalProps): JSX.Element {
+function ResetModal({
+ reset,
+ close,
+ challengeType,
+ isOpen
+}: ResetModalProps): JSX.Element {
const { t } = useTranslation();
if (isOpen) {
callGA({ event: 'pageview', pagePath: '/reset-modal' });
@@ -46,7 +53,11 @@ function ResetModal({ reset, close, isOpen }: ResetModalProps): JSX.Element {
{t('learn.reset')}
-