mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
Fix lint
This commit is contained in:
parent
d6111ed031
commit
15c3f44388
2 changed files with 4 additions and 1 deletions
|
@ -78,7 +78,9 @@ const ModeToolsComponent = props => {
|
|||
|
||||
switch (props.mode) {
|
||||
case Modes.BRUSH:
|
||||
/* falls through */
|
||||
case Modes.BIT_BRUSH:
|
||||
{
|
||||
const currentBrushIcon = isBitmap(props.format) ? bitBrushIcon : brushIcon;
|
||||
const currentBrushValue = isBitmap(props.format) ? props.bitBrushSize : props.brushValue;
|
||||
const changeFunction = isBitmap(props.format) ? props.onBitBrushSliderChange : props.onBrushSliderChange;
|
||||
|
@ -103,6 +105,7 @@ const ModeToolsComponent = props => {
|
|||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
case Modes.ERASER:
|
||||
return (
|
||||
<div className={classNames(props.className, styles.modeTools)}>
|
||||
|
|
|
@ -41,7 +41,7 @@ class BitBrushMode extends React.Component {
|
|||
}
|
||||
}
|
||||
shouldComponentUpdate (nextProps) {
|
||||
return nextProps.isBrushModeActive !== this.props.isBitBrushModeActive;
|
||||
return nextProps.isBitBrushModeActive !== this.props.isBitBrushModeActive;
|
||||
}
|
||||
activateTool () {
|
||||
clearSelection(this.props.clearSelectedItems);
|
||||
|
|
Loading…
Reference in a new issue