Skip to content

Commit

Permalink
Refactor convert links (#46930)
Browse files Browse the repository at this point in the history
* Refactor getBlockContent to a component

* Inline custom hooks

* Optimize useMemo with default empty array const

* Refactor and unify convertToNavigtionLinks behavior

* Fix missing parentPageID

* Fix convertToNavigationLinksTests

* Remove the limit on the number of pages to show

* Limit the number of pages to display to 100

Co-authored-by: Ben Dwyer <[email protected]>
  • Loading branch information
Alex Lende and Ben Dwyer authored Jan 26, 2023
1 parent f9f13ac commit 23ee4bd
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 236 deletions.
8 changes: 0 additions & 8 deletions packages/block-library/src/page-list/constants.js

This file was deleted.

70 changes: 0 additions & 70 deletions packages/block-library/src/page-list/convert-to-links-modal.js

This file was deleted.

Loading

0 comments on commit 23ee4bd

Please sign in to comment.