Skip to content

Commit

Permalink
[LinkControl] Extract reusable parts (#23869)
Browse files Browse the repository at this point in the history
* Slice-and-dice LinkControl to make parts of it reusable

* Remove out of scope changes to search create button

* Remove out of scope changes

* Add missing files

* Simplify handleSelectSuggestion

* Update LinkControlSearchResults props description

* Update snapshots

* Adjust directEntry handler usage to be consistent with the master branch

* Add mock

* Restore the intended order of results in useSearchHandler

* Use state in Creating Entities test

* Fix two other createSuggestion tests

* Fix all unit tests

* Remove the dependency on saveEntityRecord

* Fix unit tests

* Rename LinkOverview to LinkPreview

* Remove console.log
  • Loading branch information
adamziel authored Jul 17, 2020
1 parent 44295ce commit 6dba4c0
Show file tree
Hide file tree
Showing 12 changed files with 608 additions and 504 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Used as a unique identifier for the "Create" option within search results.
// Used to help distinguish the "Create" suggestion within the search results in
// order to handle it as a unique case.
export const CREATE_TYPE = '__CREATE__';
Loading

0 comments on commit 6dba4c0

Please sign in to comment.