-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: add missing AttachmentView route to InsideStack param lists #6897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
chore: add missing AttachmentView route to InsideStack param lists #6897
Conversation
WalkthroughTwo navigation type definitions are 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. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
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
✏️ Tip: You can customize this high-level summary in your review settings.