Skip to content

feat(Gallery): add callback to close action#330

Merged
Leonid21B merged 3 commits into
mainfrom
feat/add-use-gallery-callback
Aug 11, 2025
Merged

feat(Gallery): add callback to close action#330
Leonid21B merged 3 commits into
mainfrom
feat/add-use-gallery-callback

Conversation

@Leonid21B

@Leonid21B Leonid21B commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@Leonid21B Leonid21B requested a review from kseniya57 as a code owner August 6, 2025 20:21
@gravity-ui-bot

Copy link
Copy Markdown
Contributor

Preview is ready.

@Leonid21B Leonid21B force-pushed the feat/add-use-gallery-callback branch 2 times, most recently from 98a8c07 to ed22065 Compare August 6, 2025 20:26
@Leonid21B

Copy link
Copy Markdown
Contributor Author

I add this callback, because in my project we need save state gallery open/close, all app has swipe back step logic and we need use custom action when gallery close for example goBack

Comment thread src/hooks/useGallery/useGallery.tsx Outdated
Comment thread src/hooks/useGallery/useGallery.tsx Outdated
@Leonid21B Leonid21B force-pushed the feat/add-use-gallery-callback branch from 3f92e00 to 7188ead Compare August 8, 2025 21:22
@Leonid21B Leonid21B force-pushed the feat/add-use-gallery-callback branch from 7188ead to 1602ae3 Compare August 8, 2025 21:23
Comment thread src/hooks/useGallery/GalleryProvider.tsx Outdated
@kseniya57 kseniya57 self-requested a review August 11, 2025 07:40
@kseniya57

Copy link
Copy Markdown
Contributor

Please update the readme

@Leonid21B Leonid21B merged commit 1b1e6b0 into main Aug 11, 2025
4 checks passed
@Leonid21B Leonid21B deleted the feat/add-use-gallery-callback branch August 11, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants