Skip to content

Commit

Permalink
Improve the main screen's user experience
Browse files Browse the repository at this point in the history
  • Loading branch information
SafdarJamal committed Apr 25, 2021
1 parent a19e89b commit d0d3954
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const Main = ({ startQuiz }) => {
selection
name="category"
placeholder="Select Quiz Category"
header="Select Quiz Category"
options={CATEGORIES}
value={category}
onChange={(e, { value }) => setCategory(value)}
Expand All @@ -146,6 +147,7 @@ const Main = ({ startQuiz }) => {
selection
name="numOfQ"
placeholder="Select No. of Questions"
header="Select No. of Questions"
options={NUM_OF_QUESTIONS}
value={numOfQuestions}
onChange={(e, { value }) => setNumOfQuestions(value)}
Expand All @@ -157,6 +159,7 @@ const Main = ({ startQuiz }) => {
selection
name="difficulty"
placeholder="Select Difficulty Level"
header="Select Difficulty Level"
options={DIFFICULTY}
value={difficulty}
onChange={(e, { value }) => setDifficulty(value)}
Expand All @@ -168,6 +171,7 @@ const Main = ({ startQuiz }) => {
selection
name="type"
placeholder="Select Questions Type"
header="Select Questions Type"
options={QUESTIONS_TYPE}
value={questionsType}
onChange={(e, { value }) => setQuestionsType(value)}
Expand All @@ -179,6 +183,7 @@ const Main = ({ startQuiz }) => {
selection
name="hours"
placeholder="Select Hours"
header="Select Hours"
options={COUNTDOWN_TIME.hours}
value={countdownTime.hours}
onChange={handleTimeChange}
Expand All @@ -189,6 +194,7 @@ const Main = ({ startQuiz }) => {
selection
name="minutes"
placeholder="Select Minutes"
header="Select Minutes"
options={COUNTDOWN_TIME.minutes}
value={countdownTime.minutes}
onChange={handleTimeChange}
Expand All @@ -199,6 +205,7 @@ const Main = ({ startQuiz }) => {
selection
name="seconds"
placeholder="Select Seconds"
header="Select Seconds"
options={COUNTDOWN_TIME.seconds}
value={countdownTime.seconds}
onChange={handleTimeChange}
Expand Down

0 comments on commit d0d3954

Please sign in to comment.