UNPKG

modaq

Version:

Quiz Bowl Reader using TypeScript, React, and MobX

14 lines 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.throwOutBonus = void 0; const AppState_1 = require("../state/AppState"); require("../state/Cycle"); function throwOutBonus(cycle, bonusIndex) { const appState = AppState_1.AppState.instance; appState.uiState.dialogState.showOKCancelMessageDialog("Throw out Bonus", "Click OK to throw out the bonus. To undo this, click on the X next to its event in the Event Log.", () => onConfirmThrowOutBonus(cycle, bonusIndex)); } exports.throwOutBonus = throwOutBonus; function onConfirmThrowOutBonus(cycle, bonusIndex) { cycle.addThrownOutBonus(bonusIndex); } //# sourceMappingURL=BonusQuestionController.js.map