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, Sep 26, 11:46 AM
Unknown Object (File)
Sat, Sep 7, 1:40 AM
Unknown Object (File)
Sat, Sep 7, 1:40 AM
Unknown Object (File)
Sat, Sep 7, 1:40 AM
Unknown Object (File)
Sat, Sep 7, 1:34 AM
Unknown Object (File)
Thu, Aug 29, 8:42 PM
Unknown Object (File)
Jul 29 2024, 7:53 PM
Unknown Object (File)
Jul 29 2024, 7:53 PM
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
Lint Not Applicable
Unit
Tests Not Applicable