@@ -263,7 +263,7 @@ export class ScenarioQuesAns extends React.Component {
263263 { conclusionReached && (
264264 < AnswerInfoPopup
265265 open = { open }
266- message = { 'Your answer is correct ' }
266+ message = { 'Scenario Ends ' }
267267 answerStatus = { true }
268268 handleClose = { this . handleClose }
269269 imageUrl = { correctAnsUrl }
@@ -290,8 +290,8 @@ export class ScenarioQuesAns extends React.Component {
290290 messageOne : parScoreStatus
291291 ? `You have scored ${ currentScore > 0 ? currentScore : 0 } /${ totalScore } .`
292292 : `Oh! You have scored only ${ currentScore > 0
293- ? currentScore
294- : 0 } /${ totalScore } .`,
293+ ? currentScore
294+ : 0 } /${ totalScore } .`,
295295 messageTwo : `Scenario Ends` ,
296296
297297 messageThree : parScoreStatus
@@ -306,56 +306,56 @@ export class ScenarioQuesAns extends React.Component {
306306 ) }
307307
308308 { ! showCorrectAns &&
309- questionId != null && (
310- < div >
311- < div className = "level-question-detail" >
312- < span > Level { level } </ span >
313- < span className = "question-number-status" >
314- Question { id } out of { totalQuestion }
315- </ span >
316- </ div >
317- < div className = "progress-bar-container" >
318- < ProgressBar progress = { progress } />
319- </ div >
320- < div className = "questions-container" >
321- < p className = { `question-label question-label-${ moduleColor } ` } >
322- { questions &&
323- questions . length > 0 &&
324- questionId != null &&
325- questions [ questionId - 1 ] . question }
326- </ p >
327- </ div >
328- < div className = "answer-container" >
329- { ! emptyOption && ! showAnswer && < p className = "select-label" > Select any option.</ p > }
330- < div className = "options-card-container" >
331- { ! emptyOption &&
332- questions &&
333- questions . length > 0 &&
334- questionId != null &&
335- questions [ questionId - 1 ] . options . map ( ( option , key ) => (
336- < Card
337- key = { key }
338- option = { moduleScenario ? option . option : option }
339- answerClick = { answerClick }
340- // selectedCard={clickedOptions.includes(key)}
341- selectedCard = { selectedCard === key }
342- handleClick = { this . handleAnswerClick ( key ) }
343- moduleColor = { moduleColor }
344- />
345- ) ) }
309+ questionId != null && (
310+ < div >
311+ < div className = "level-question-detail" >
312+ < span > Level { level } </ span >
313+ < span className = "question-number-status" >
314+ Question { id } out of { totalQuestion }
315+ </ span >
346316 </ div >
347- </ div >
348- { /* Either option is clicked or question option is empty render proceed button */ }
349- { ( emptyOption || answerClick ) && (
350- < button
351- className = { `next-page-button next-page-button-${ true } ` }
352- onClick = { moduleScenario ? this . handleScenarioProceed : this . handleProceedNext }
353- >
354- Proceed
317+ < div className = "progress-bar-container" >
318+ < ProgressBar progress = { progress } />
319+ </ div >
320+ < div className = "questions-container" >
321+ < p className = { `question-label question-label-${ moduleColor } ` } >
322+ { questions &&
323+ questions . length > 0 &&
324+ questionId != null &&
325+ questions [ questionId - 1 ] . question }
326+ </ p >
327+ </ div >
328+ < div className = "answer-container" >
329+ { ! emptyOption && ! showAnswer && < p className = "select-label" > Select any option.</ p > }
330+ < div className = "options-card-container" >
331+ { ! emptyOption &&
332+ questions &&
333+ questions . length > 0 &&
334+ questionId != null &&
335+ questions [ questionId - 1 ] . options . map ( ( option , key ) => (
336+ < Card
337+ key = { key }
338+ option = { moduleScenario ? option . option : option }
339+ answerClick = { answerClick }
340+ // selectedCard={clickedOptions.includes(key)}
341+ selectedCard = { selectedCard === key }
342+ handleClick = { this . handleAnswerClick ( key ) }
343+ moduleColor = { moduleColor }
344+ />
345+ ) ) }
346+ </ div >
347+ </ div >
348+ { /* Either option is clicked or question option is empty render proceed button */ }
349+ { ( emptyOption || answerClick ) && (
350+ < button
351+ className = { `next-page-button next-page-button-${ true } ` }
352+ onClick = { moduleScenario ? this . handleScenarioProceed : this . handleProceedNext }
353+ >
354+ Proceed
355355 </ button >
356- ) }
357- </ div >
358- ) }
356+ ) }
357+ </ div >
358+ ) }
359359 </ Fragment >
360360 </ div >
361361 { infoOpen && < GameInfo open = { infoOpen } handleClose = { this . handleInfoClose } /> }
0 commit comments