Skip to content

Commit

Permalink
[RNMobile] Remove left border of the toolbar (#20830)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tug authored Mar 13, 2020
1 parent a38de90 commit bdaead2
Showing 1 changed file with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,26 @@ function HeaderToolbar( {
alwaysBounceHorizontal={ false }
contentContainerStyle={ styles.scrollableContent }
>
<Toolbar accessible={ false }>
<Inserter disabled={ ! showInserter } />
{ /* TODO: replace with EditorHistoryRedo and EditorHistoryUndo */ }
<ToolbarButton
title={ __( 'Undo' ) }
icon={ undoIcon }
isDisabled={ ! hasUndo }
onClick={ undo }
extraProps={ {
hint: __( 'Double tap to undo last change' ),
} }
/>
<ToolbarButton
title={ __( 'Redo' ) }
icon={ redoIcon }
isDisabled={ ! hasRedo }
onClick={ redo }
extraProps={ {
hint: __( 'Double tap to redo last change' ),
} }
/>
</Toolbar>
<Inserter disabled={ ! showInserter } />
{ /* TODO: replace with EditorHistoryRedo and EditorHistoryUndo */ }
<ToolbarButton
title={ __( 'Undo' ) }
icon={ undoIcon }
isDisabled={ ! hasUndo }
onClick={ undo }
extraProps={ {
hint: __( 'Double tap to undo last change' ),
} }
/>
<ToolbarButton
title={ __( 'Redo' ) }
icon={ redoIcon }
isDisabled={ ! hasRedo }
onClick={ redo }
extraProps={ {
hint: __( 'Double tap to redo last change' ),
} }
/>
{ hasFixedToolbar && <BlockToolbar /> }
</ScrollView>
{ showKeyboardHideButton && (
Expand Down

0 comments on commit bdaead2

Please sign in to comment.