App: [HOLD for payment 2023-11-30] [$250] Migrate AvatarWithImagePicker.js to function component

Class Component Migration

Filenames

  • src/components/AvatarWithImagePicker.js
    • type: React.Component
    • has state values: true
    • has refs: false
    • has context: false
    • lifecycle methods: componentDidMount,componentWillUnmount,componentDidUpdate

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/~01d53fbc9f79a94c05
  • Upwork Job ID: 1707284642930675712
  • Last Price Increase: 2023-09-28

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 37 (13 by maintainers)

Most upvoted comments

This issue has not been updated in over 15 days. eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they’ll reopen it, and if they don’t: one less thing to do!