Skip to content

Commit

Permalink
Navigation Editor: Fix React warning
Browse files Browse the repository at this point in the history
Remove unnecessary Fragment wrapper.
  • Loading branch information
Mamaduka committed May 25, 2021
1 parent 10b6189 commit ea9e320
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions packages/edit-navigation/src/components/name-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,16 @@ export function NameEditor() {
}, [ isMenuNameEditFocused ] );

return (
<>
<TextControl
ref={ inputRef }
help={ __(
'A short, descriptive name used to refer to this menu elsewhere.'
) }
label={ __( 'Name' ) }
onBlur={ () => setIsMenuNameEditFocused( false ) }
className="edit-navigation-name-editor__text-control"
value={ name }
onChange={ setName }
/>
</>
<TextControl
ref={ inputRef }
help={ __(
'A short, descriptive name used to refer to this menu elsewhere.'
) }
label={ __( 'Name' ) }
onBlur={ () => setIsMenuNameEditFocused( false ) }
className="edit-navigation-name-editor__text-control"
value={ name || '' }
onChange={ setName }
/>
);
}

0 comments on commit ea9e320

Please sign in to comment.