Page MenuHomePhabricator

[native] Naively split `EditAvatar` into `EditUserAvatar` and `EditThreadAvatar`
ClosedPublic

Authored by atul on Apr 18 2023, 9:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 31, 12:25 PM
Unknown Object (File)
Thu, Oct 31, 12:25 PM
Unknown Object (File)
Thu, Oct 31, 12:24 PM
Unknown Object (File)
Thu, Oct 31, 12:19 PM
Unknown Object (File)
Sun, Oct 20, 3:24 PM
Unknown Object (File)
Sep 26 2024, 11:46 AM
Unknown Object (File)
Sep 7 2024, 1:40 AM
Unknown Object (File)
Sep 7 2024, 1:40 AM
Subscribers

Details

Summary

We just copy the existing contents of EditAvatar and paste into EditUserAvatar and EditThreadAvatar and update imports.

In subsequent diffs we will:

  1. Move UserAvatar and ThreadAvatar "into" EditUserAvatar and EditThreadAvatar respectively instead of passing in React.Node prop.
  2. Pull out common functionality to hooks
  3. Introduce user/avatar-specific functionality
  4. Once everything is working, consider introducing some sort of BaseEditAvatar with some of the common styling/layout stuff (eg pencil icon). Defer this until the end once we have everything working.

Depends on D7491

Test Plan

App appears to work as before. Flow/ESLint to check imports.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage