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 <madhudollu@git.wordpress.org> Co-authored-by: luisherranz <luisherranz@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org> Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
- Loading branch information
1 parent
513aaec
commit 06ba49e
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