-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored PostTextEditor to use React Hook (#23897)
* Refactored PostTextEditor to use React Hook * use useInstanceId hook instead of withInstanceId * Replaced withSelect and withDispatch with useSelect and useDispatch * Replaced withSelect and withDispatch with useSelect and useDispatch * Remove external prop support * Refactored edit function to onChange * Removed onPersist function Co-authored-by: Janvo Aldred <[email protected]>
- Loading branch information
1 parent
4719212
commit 39d5086
Showing
2 changed files
with
158 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 109 additions & 65 deletions
174
packages/editor/src/components/post-text-editor/test/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters