Update `<ImageUploader />` class component to use hooks #9369

What type of PR is this? (check all applicable)

  • [x] Refactor
  • [ ] Feature
  • [ ] Bug Fix
  • [ ] Optimization
  • [ ] Documentation Update

Description

This PR refactors the <ImageUploader /> class component to a function component using the useReducer hook.

Related Tickets & Documents

#9338

QA Instructions, Screenshots, Recordings

Screen Shot 2020-07-25 at 4 10 02 PM

No new features were added, so we did not add new tests. All previous tests pass. The component works the same as before.

Added tests?

  • [ ] yes
  • [x] no, because they aren't needed
  • [ ] no, because I need help

Added to documentation?

  • [ ] docs.dev.to
  • [ ] readme
  • [x] no documentation needed

[optional] Are there any post deployment tasks we need to perform?

No

[optional] What gif best describes this PR or how it makes you feel?

excited woman dancing and celebrating