Skip to content

Commit

Permalink
Wrap more JSX in the grouping operator, as usual
Browse files Browse the repository at this point in the history
  • Loading branch information
hypest committed Nov 6, 2019
1 parent b2bbd73 commit e863087
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions packages/block-library/src/missing/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,22 @@ export class UnsupportedBlockEdit extends Component {
}

renderHelpIcon() {
return <TouchableWithoutFeedback
accessibilityLabel={ __( 'Help icon' ) }
accessibilityRole={ 'button' }
accessibilityHint={ __( 'Tap here to show help' ) }
onPress={ this.toggleSheet.bind( this ) }
>
<View style={ styles.helpIconContainer } >
<Icon
className="unsupported-icon-help"
label={ __( 'Help icon' ) }
icon="editor-help"
/>
</View>
</TouchableWithoutFeedback>;
return (
<TouchableWithoutFeedback
accessibilityLabel={ __( 'Help icon' ) }
accessibilityRole={ 'button' }
accessibilityHint={ __( 'Tap here to show help' ) }
onPress={ this.toggleSheet.bind( this ) }
>
<View style={ styles.helpIconContainer } >
<Icon
className="unsupported-icon-help"
label={ __( 'Help icon' ) }
icon="editor-help"
/>
</View>
</TouchableWithoutFeedback>
);
}

renderSheet( title ) {
Expand Down

0 comments on commit e863087

Please sign in to comment.