wingkwong / react-quiz-component

:orange_book: React Quiz Component
https://wingkwong.github.io/react-quiz-component/
MIT License
370 stars 142 forks source link

Modified The timer #168

Closed vr-varad closed 10 months ago

vr-varad commented 10 months ago

took endQuiz in the Quiz component from Core component. @wingkwong check it out

vr-varad commented 10 months ago

I can work on the layout and if there is another way for the Timer let me know @wingkwong

vr-varad commented 10 months ago

counter finalTime will ir work? @wingkwong

wingkwong commented 10 months ago

I am setting the timer inside quiz because if I u do in core then after finishing the quiz the core component is removed and I can't access the timer from the after the finishing page is rendered.

The core component isn't removed. I guess you've put Timer inside the block when endQuiz is false. You can see that I can access the timer after finishing the quiz in the screenshots I provided as I put it outside right.

vr-varad commented 10 months ago

fixed it and now its its working also thanks:)