From 187a7f6077b46e7a7b5e13859c931762738a9df7 Mon Sep 17 00:00:00 2001 From: swanie21 Date: Thu, 19 Jan 2017 12:02:44 -0700 Subject: [PATCH] add functions in quiz to check answers --- app/components/Answers/Answers.jsx | 7 ++++--- app/components/Question/Question.jsx | 6 ++++-- app/components/Quiz/Quiz.jsx | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/app/components/Answers/Answers.jsx b/app/components/Answers/Answers.jsx index 4c02896..6b8b16d 100644 --- a/app/components/Answers/Answers.jsx +++ b/app/components/Answers/Answers.jsx @@ -1,10 +1,10 @@ import React, { PropTypes } from 'react'; -const Answers = ({ id, answers, score, sumScore }) => { +const Answers = ({ id, answers, score, setScores }) => { return (