Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.97k stars 2.48k forks source link

fix error when clicking on attachment note #40844

Open nkdengineer opened 1 week ago

nkdengineer commented 1 week ago

Details

melvin-bot[bot] commented 1 week ago

@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

shubham1206agra commented 1 week ago

@nkdengineer Please fix conflicts and can you summarize what you have done in this PR?

nkdengineer commented 5 days ago

This PR will create a new route:

  ATTACHMENTS: {
        route: 'attachment',
        getRoute: (reportID: string, type: ValueOf<typeof CONST.ATTACHMENT_TYPE>, url: string, accountID?: number) =>
            `attachment?source=${encodeURIComponent(url)}&type=${type}${reportID ? `&reportID=${reportID}` : ''}${accountID ? `&accountID=${accountID}` : ''}` as const,

that can be used in report attachments, note attachments and any type of attachments in the future

nkdengineer commented 2 days ago

@shubham1206agra Pls help review the PR when you have a chance. Thanks

shubham1206agra commented 1 day ago

@nkdengineer Please merge main here.