Skip to content

Commit

Permalink
Wrap JSX in the grouping operator, as usual
Browse files Browse the repository at this point in the history
  • Loading branch information
hypest committed Nov 5, 2019
1 parent 4c2b904 commit f7c8582
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions packages/block-library/src/missing/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,24 @@ export class UnsupportedBlockEdit extends Component {
title,
);

return <BottomSheet
isVisible={ this.state.showHelp }
hideHeader
onClose={ this.toggleSheet.bind( this ) }
>
<View style={ styles.infoContainer } >
<Icon icon="editor-help" style={ styles.infoIcon } size={ styles.infoIcon.size } />
<Text style={ [ infoTextStyle, infoTitleStyle ] }>
{ infoTitle }
</Text>
<Text style={ [ infoTextStyle, infoDescriptionStyle ] }>
{ __( 'We are working hard to add more blocks with each release. In the meantime, you can also edit this post on the web.' ) }
</Text>
{ this.renderSheetButton( __( 'Close' ), () => this.toggleSheet.bind( this ) ) }
</View>
</BottomSheet>;
return (
<BottomSheet
isVisible={ this.state.showHelp }
hideHeader
onClose={ this.toggleSheet.bind( this ) }
>
<View style={ styles.infoContainer } >
<Icon icon="editor-help" style={ styles.infoIcon } size={ styles.infoIcon.size } />
<Text style={ [ infoTextStyle, infoTitleStyle ] }>
{ infoTitle }
</Text>
<Text style={ [ infoTextStyle, infoDescriptionStyle ] }>
{ __( 'We are working hard to add more blocks with each release. In the meantime, you can also edit this post on the web.' ) }
</Text>
{ this.renderSheetButton( __( 'Close' ), () => this.toggleSheet.bind( this ) ) }
</View>
</BottomSheet>
);
}

render() {
Expand Down

0 comments on commit f7c8582

Please sign in to comment.