Added abandon exam/exercise handler
This commit is contained in:
@@ -332,6 +332,9 @@ export default function Page() {
|
|||||||
abandonConfirmButtonText="Confirm"
|
abandonConfirmButtonText="Confirm"
|
||||||
onAbandon={() => {
|
onAbandon={() => {
|
||||||
console.log('TODO: Handle Abandon');
|
console.log('TODO: Handle Abandon');
|
||||||
|
setExam(undefined);
|
||||||
|
setSelectedModules([]);
|
||||||
|
setShowAbandonPopup(false)
|
||||||
return true;
|
return true;
|
||||||
}}
|
}}
|
||||||
onCancel={() => setShowAbandonPopup(false)}
|
onCancel={() => setShowAbandonPopup(false)}
|
||||||
|
|||||||
@@ -334,7 +334,9 @@ export default function Page() {
|
|||||||
abandonPopupDescription="Are you sure you want to leave the exercise? You will lose all your progress."
|
abandonPopupDescription="Are you sure you want to leave the exercise? You will lose all your progress."
|
||||||
abandonConfirmButtonText="Confirm"
|
abandonConfirmButtonText="Confirm"
|
||||||
onAbandon={() => {
|
onAbandon={() => {
|
||||||
console.log('TODO: Handle Abandon');
|
setExam(undefined);
|
||||||
|
setSelectedModules([]);
|
||||||
|
setShowAbandonPopup(false)
|
||||||
return true;
|
return true;
|
||||||
}}
|
}}
|
||||||
onCancel={() => setShowAbandonPopup(false)}
|
onCancel={() => setShowAbandonPopup(false)}
|
||||||
|
|||||||
Reference in New Issue
Block a user