Skip to content

Commit 4e697e6

Browse files
authored
Merge pull request #37 from CrutchAndBike/fix-modal
Исправил обработчики кнопок в окне редактора вопроса
2 parents f2a931b + 1326291 commit 4e697e6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/components/Actions/Actions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Actions extends Component {
1212
return (
1313
<div className={cnActions()}>
1414
<Button theme="normal" size="m" text="Отмена" onClick={this.props.handleCloseModal} />
15-
<Button theme="action" size="m" text="Сохранить" onClick={this.props.handleCloseModal} />
15+
<Button theme="action" size="m" text="Сохранить" onClick={this.props.handleSave} />
1616
</div>
1717
);
1818
}

src/components/Constructor/Constructor.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class Constructor extends Component {
4444

4545
savePool() {
4646
this.splitInfo = this.child.getSplitInfo();
47-
console.log(this.splitInfo);
4847
}
4948

5049
render() {

src/components/QuestionModal/QuestionModalComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class QuestionModalComponent extends Component {
8080
handleChangeAnswer={this.handleModalChangeAnswer}
8181
handleDeleteAnswer={this.handleModalDeleteAnswer}
8282
/>
83-
<Actions closeModal={closeModal} saveQuestion={this.saveQuestion} />
83+
<Actions handleCloseModal={closeModal} handleSave={this.saveQuestion} />
8484
</div>
8585
<div className={cnQuestionModal('Preview')}>
8686
<QuestionPreview

0 commit comments

Comments
 (0)