Implemented submit-feature - #341
rohith1222004 wants to merge 1 commit into
Conversation
wingkwong
left a comment
There was a problem hiding this comment.
- please update README.md as well
- make it configurable
| Submit | ||
| </button> | ||
| </div> | ||
| :null |
| <div style={{display:'flex', justifyContent: 'space-between'}}> | ||
| { | ||
| !endQuiz? | ||
| <div style={{ display: 'flex',marginRight:'auto'}}> |
| <div style={{ display: 'flex',marginRight:'auto'}}> | ||
| <button | ||
| onClick={() => {submitQuiz()}} | ||
| style={{ display: 'flex', justifyContent: 'center', backgroundColor: 'green',color:'white' }} |
| const submitQuiz = () => { | ||
| setIsRunning(false); | ||
| setEndQuiz(true); | ||
| getUnansweredQuestions(); | ||
| } |
There was a problem hiding this comment.
the code is same as handleTimeUp. don't duplicate it. revise the function and use for both case.
|
@rohith1222004 are you still interested in finishing this? Can you include a screenshot like #56 (comment) in the PR as well? And if you could make the submit early button configurable: optional (off by default, set some kind of flag to turn it on) and so the caller can decide what to call the submit early button. "Quit" or "Exit" or whatever, depending on the context. Also style wise it should probably look the same as the existing buttons, just copy the relevant classes I'm guessing. Let me know if you need any help with the suggestions. |
|
@rohith1222004 I installed your branch and the submit button is not showing, apart from the Core.js file did you modify any other file? |
Closes #56