mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
fix lint
This commit is contained in:
parent
28da99bb05
commit
b1d5111ed4
3 changed files with 5 additions and 3 deletions
|
@ -268,6 +268,7 @@ PaintEditor.propTypes = {
|
|||
activate: PropTypes.func.isRequired,
|
||||
remove: PropTypes.func.isRequired
|
||||
}),
|
||||
removeTextEditTarget: PropTypes.func.isRequired,
|
||||
rotationCenterX: PropTypes.number,
|
||||
rotationCenterY: PropTypes.number,
|
||||
setSelectedItems: PropTypes.func.isRequired,
|
||||
|
@ -279,7 +280,7 @@ PaintEditor.propTypes = {
|
|||
stack: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
pointer: PropTypes.number.isRequired
|
||||
}),
|
||||
updateViewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
|
||||
updateViewBounds: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
|
|
|
@ -223,7 +223,7 @@ PaperCanvas.propTypes = {
|
|||
svg: PropTypes.string,
|
||||
svgId: PropTypes.string,
|
||||
undoSnapshot: PropTypes.func.isRequired,
|
||||
updateViewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
|
||||
updateViewBounds: PropTypes.func.isRequired
|
||||
};
|
||||
const mapStateToProps = state => ({
|
||||
mode: state.scratchPaint.mode
|
||||
|
|
|
@ -110,7 +110,8 @@ TextMode.propTypes = {
|
|||
setSelectedItems: PropTypes.func.isRequired,
|
||||
setTextEditTarget: PropTypes.func.isRequired,
|
||||
textArea: PropTypes.instanceOf(Element),
|
||||
textEditTarget: PropTypes.number
|
||||
textEditTarget: PropTypes.number,
|
||||
viewBounds: PropTypes.instanceOf(paper.Matrix).isRequired
|
||||
};
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
|
|
Loading…
Reference in a new issue