Page MenuHomePhabricator

[native] [refactor] [ENG-991] use usePromoteSidebar hook
ClosedPublic

Authored by benschac on Apr 15 2022, 12:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 6:09 AM
Unknown Object (File)
Fri, Nov 8, 3:56 AM
Unknown Object (File)
Fri, Nov 8, 3:41 AM
Unknown Object (File)
Fri, Nov 8, 12:46 AM
Unknown Object (File)
Tue, Nov 5, 5:09 AM
Unknown Object (File)
Tue, Nov 5, 5:09 AM
Unknown Object (File)
Tue, Nov 5, 5:09 AM
Unknown Object (File)
Tue, Nov 5, 5:09 AM

Details

Summary
Test Plan

use promote thread feature like you normally would.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested changes to this revision.Apr 19 2022, 3:11 AM
tomek added inline comments.
native/chat/settings/thread-settings-promote-sidebar.react.js
7–8 ↗(On Diff #11523)

These imports are inconsistent

73–78 ↗(On Diff #11523)

We should use a callback for onError. In fact, we can even move this function outside the component - it doesn't depend on anything.

This revision now requires changes to proceed.Apr 19 2022, 3:11 AM
benschac added inline comments.
native/chat/settings/thread-settings-promote-sidebar.react.js
73–78 ↗(On Diff #11523)

ty! good catch!

This revision is now accepted and ready to land.Apr 20 2022, 9:43 AM