forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Image lightbox: move image data from context to state (WordPress#63348)
* move the image context data to state * move image and button refs from context to state * Use hash instead of counter for the unique id * Don't use immutability * Fix reading prop from old context * Only store the current image ID in the state * Replace hash based on url with PHP's uniqid() * fix lightbox trigger image position --------- Co-authored-by: madhusudhand <[email protected]> Co-authored-by: luisherranz <[email protected]> Co-authored-by: mikachan <[email protected]> Co-authored-by: SantosGuillamot <[email protected]>
- Loading branch information
1 parent
469f379
commit 7a3d339
Showing
2 changed files
with
70 additions
and
39 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
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