Skip to content

Commit

Permalink
default inserter label is used in so many tests
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Oct 1, 2019
1 parent 5a8f188 commit e05e1be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/inserter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ import {
import InserterMenu from './menu';

const defaultRenderToggle = ( { onToggle, disabled, isOpen, blockTitle } ) => {
const label = sprintf( _x( 'Add %s', 'directly add the allowed block' ), blockTitle );
let label = sprintf( _x( 'Add %s', 'directly add the allowed block' ), blockTitle );
if ( blockTitle === '' ) {
label = 'Add block';
}
return (
<IconButton
icon="insert"
Expand Down

0 comments on commit e05e1be

Please sign in to comment.