From 9957f605b3c06512853532e3ce23c33c45c58fa2 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Thu, 2 Sep 2021 15:36:39 +0300
Subject: [PATCH] move onClick into button

---
 .../components/QuestionComponent.js                       | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/QuestionComponent.js b/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/QuestionComponent.js
index bdaa084eb..f5e071d1d 100644
--- a/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/QuestionComponent.js
+++ b/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/QuestionComponent.js
@@ -203,12 +203,8 @@ export default ({ node, view, getPos }) => {
         <IconsWrapper>
           {showAddIcon && !readOnly && (
             <Button
-              icon={
-                <PlusSquareOutlined
-                  onClick={() => addOption(node.attrs.id)}
-                  title="Add Option"
-                />
-              }
+              onClick={() => addOption(node.attrs.id)}
+              icon={<PlusSquareOutlined title="Add Option" />}
             />
           )}
           {showRemoveIcon && !readOnly && (
-- 
GitLab