@@ -2,9 +2,9 @@ import React from 'react';
22import PropTypes from 'prop-types' ;
33import { withStyles } from '@material-ui/core/styles' ;
44import classNames from 'classnames' ;
5- import Category from './category' ;
65import { moveChoiceToAlternate , removeChoiceFromAlternate } from '@pie-lib/pie-toolbox/categorize' ;
7- import { RowLabel } from './RowLabel' ;
6+
7+ import Category from './category' ;
88import { getMaxCategoryChoices } from '../../utils' ;
99
1010const styles = ( theme ) => ( {
@@ -28,9 +28,6 @@ const styles = (theme) => ({
2828 rowLabel : {
2929 gridColumn : '1/3' ,
3030 } ,
31- rowLabelHolder : {
32- width : '100%' ,
33- } ,
3431} ) ;
3532
3633export class AlternateResponses extends React . Component {
@@ -44,15 +41,12 @@ export class AlternateResponses extends React.Component {
4441 classes : PropTypes . object . isRequired ,
4542 className : PropTypes . string ,
4643 categories : PropTypes . array ,
47- defaultImageMaxHeight : PropTypes . number ,
48- defaultImageMaxWidth : PropTypes . number ,
4944 onModelChanged : PropTypes . func ,
5045 model : PropTypes . object . isRequired ,
5146 uploadSoundSupport : PropTypes . shape ( {
5247 add : PropTypes . func . isRequired ,
5348 delete : PropTypes . func . isRequired ,
5449 } ) ,
55- toolbarOpts : PropTypes . object ,
5650 spellCheck : PropTypes . bool ,
5751 } ;
5852
@@ -161,14 +155,10 @@ export class AlternateResponses extends React.Component {
161155 imageSupport,
162156 spellCheck,
163157 uploadSoundSupport,
164- toolbarOpts,
165- defaultImageMaxHeight,
166- defaultImageMaxWidth,
167158 mathMlOptions = { } ,
168159 } = this . props ;
169160 const { categoriesPerRow, errors, rowLabels } = model ;
170161 const { duplicateAlternate } = errors || { } ;
171- const { maxImageWidth = { } , maxImageHeight = { } } = configuration || { } ;
172162
173163 const holderStyle = {
174164 gridTemplateColumns : `repeat(${ categoriesPerRow } , 1fr)` ,
0 commit comments