Close heatmap modal when swiping to muscle list#49
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe PR introduces an Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Motivation
Description
isActive?: booleanprop toMobileHeatmapwith a default oftrueto indicate whether the heatmap slide is currently visible.useEffectinMobileHeatmapthat clearsselectedRegion(closing the modal) whenisActivebecomesfalseby callingsetSelectedRegion(null).isActive={selectedIndex === 0}fromMobileCarouselso the modal closes automatically when swiping to the muscle list.Testing
Codex Task
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.