chore: add missing AttachmentView route to InsideStack param lists#6897
chore: add missing AttachmentView route to InsideStack param lists#6897divyanshu-patil wants to merge 6 commits intoRocketChat:developfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughTwo navigation type definitions were extended with a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|
I am unable to see that @ts-ignore has been removed, as mentioned in the PR description Remove the need for @ts-ignore when navigating to AttachmentView |
@Rohit3523 |
Proposed changes
This PR addresses a small mismatch between the runtime navigator configuration and the TypeScript route definitions.
Issue
AttachmentViewis registered inInsideStack, but its route definition is missing from:InsideStackParamListMasterDetailInsideStackParamListBecause of this, navigating to AttachmentView currently requires using @ts-ignore, even though the route exists and works correctly at runtime.
Changes
AttachmentViewroute definitions to both param lists@ts-ignorewhen navigating toAttachmentViewIssue(s)
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
InsideStack.tsx
Rocket.Chat.ReactNative/app/stacks/InsideStack.tsx
Line 336 in b990e60
MasterDetailStack
Rocket.Chat.ReactNative/app/stacks/MasterDetailStack/index.tsx
Line 224 in b990e60
Summary by CodeRabbit
New Features
Improvements