Skip to content
Snippets Groups Projects
Commit af9a178f authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix linting

parent 2a1ae917
Branches
Tags
No related merge requests found
......@@ -76,9 +76,9 @@ const SpriteSelectorItem = props => (
SpriteSelectorItem.propTypes = {
className: PropTypes.string,
costumeURL: PropTypes.string,
details: PropTypes.string,
name: PropTypes.string.isRequired,
number: PropTypes.number,
details: PropTypes.string,
onClick: PropTypes.func,
onDeleteButtonClick: PropTypes.func,
onDuplicateButtonClick: PropTypes.func,
......
......@@ -161,7 +161,7 @@ class CostumeTab extends React.Component {
formatCostumeDetails (size) {
// Round up width and height for scratch-flash compatibility
// https://github.com/LLK/scratch-flash/blob/9fbac92ef3d09ceca0c0782f8a08deaa79e4df69/src/ui/media/MediaInfo.as#L224-L237
return `${Math.ceil(size[0])} x ${Math.ceil(size[1])}`
return `${Math.ceil(size[0])} x ${Math.ceil(size[1])}`;
}
render () {
const {
......@@ -189,7 +189,7 @@ class CostumeTab extends React.Component {
const addLibraryFunc = target.isStage ? onNewLibraryBackdropClick : onNewLibraryCostumeClick;
const addLibraryIcon = target.isStage ? addLibraryBackdropIcon : addLibraryCostumeIcon;
const costumeData = (target.costumes || []).map((costume) => ({
const costumeData = (target.costumes || []).map(costume => ({
name: costume.name,
assetId: costume.assetId,
details: costume.size ? this.formatCostumeDetails(costume.size) : null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment