Utilise LinkUI component in Navigation Submenu #46207
Labels
[Block] Submenu
Affects the Submenu Block - for submenus in navigation
[Type] Code Quality
Issues or PRs that relate to code quality
The Nav Submenu block implements a lot of the same functionality as the Nav Link block.
Specifically I've noticed that the handling of creation of links is nearly identical.
gutenberg/packages/block-library/src/navigation-submenu/edit.js
Line 665 in 60c33c4
In # we extracted the implementation of the Link UI to a
<LinkUI>
component within the Navigation Link block directly. Let's utilise this inside the Submenu block as well.As both block's are within the
block-library
package it should be easy enough to achieve.The text was updated successfully, but these errors were encountered: