App: [HOLD for payment 2023-08-10] [$250] Migrate Switch.js to function component

Class Component Migration

Filenames

  • src/components/Switch.js
    • type: React.Component
    • has state values: false
    • has refs: false
    • has context: false
    • lifecycle methods: 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/~01a969618a599c1a97
  • Upwork Job ID: 1685092744716627968
  • Last Price Increase: 2023-07-29
  • Automatic offers:
    • s77rt | Reviewer | 25865423

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 41 (23 by maintainers)

Most upvoted comments

Everyone paid and job closed!

@evappdev Thanks for your interest here but @huzaifa-99 is already working on this.

@deetergp Please assign @huzaifa-99 here

@huzaifa-99 unfortunately not! The function component jobs are a flat $250.

Thought so, cheers!

@jliexpensify No, checklists are only for bugs. This is a functional migration (improvement/feature request).

@s77rt PR #23857 is ready for review.

Thanks for the review, @s77rt. I will create a pr shortly

Thank you all for your interest here. Going in chronological order

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed