Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroalonso committed Jan 22, 2020
1 parent dd1c93e commit e72a22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import React from 'react';
import {
requestMediaPicker,
requestMediaEditor,
mediaSources,
} from 'react-native-gutenberg-bridge';
Expand Down Expand Up @@ -54,7 +53,7 @@ export class MediaEdit extends React.Component {
}

onPickerSelect( value ) {
const { allowedTypes = [], onSelect, multiple = false } = this.props;
const { onSelect, multiple = false } = this.props;

switch ( value ) {
case MEDIA_EDITOR:
Expand All @@ -65,7 +64,7 @@ export class MediaEdit extends React.Component {
} );
break;
default:
this.props.openReplaceMediaOptions()
this.props.openReplaceMediaOptions();
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export class ImageEdit extends React.Component {
<MediaEdit allowedTypes={ [ MEDIA_TYPE_IMAGE ] }
onSelect={ this.onSelectMediaUploadOption }
source={ { uri: url } }
openReplaceMediaOptions = { openMediaOptions }
openReplaceMediaOptions={ openMediaOptions }
render={ ( { open, mediaOptions } ) => {
return editImageComponent( open, mediaOptions );
} }
Expand Down

0 comments on commit e72a22a

Please sign in to comment.