App: [HOLD for payment 2023-06-29] [$250] Migrate AttachmentModal.js to function component

Class Component Migration

Filenames

Task

  • We currently have some class components in our codebase that we would like to refactor to a function component.
  • Here’s a link with some general advice on how to refactor a class component to a function component: https://react.dev/reference/react/Component#alternatives
  • If you need additional guidance, please ask in #expensify-open-source
  • Test for any regressions and verify that there are no breaking changes
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a7e287fa36d40c6a
  • Upwork Job ID: 1664795623973076992
  • Last Price Increase: 2023-06-03

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 46 (31 by maintainers)

Most upvoted comments

@ahmdshrif thank you for your interest. As a refactoring task, it is expected that the component maintains the same variable names and comments in order to ensure consistency. Although the similarities may be coincidental, I assure you that my implementation was based on my own analysis and adhered to Expensify’s code style rules.