Page MenuHomePhabricator

[lib] Turn `canPromoteSidebar` to `useCanPromoteSidebar` hook
ClosedPublic

Authored by atul on Thu, Apr 25, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 6:58 PM
Unknown Object (File)
Tue, Apr 30, 6:27 PM
Unknown Object (File)
Tue, Apr 30, 4:07 PM
Unknown Object (File)
Sun, Apr 28, 6:10 PM
Subscribers
None

Details

Summary

Part of deprecating use of threadHasPermission on client.


Depends on D11791

Test Plan

flow + close reading

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Thu, Apr 25, 2:30 PM
ashoat added inline comments.
lib/hooks/promote-sidebar.react.js
34–37 ↗(On Diff #39518)

Might as well combine all of these now

This revision is now accepted and ready to land.Thu, Apr 25, 2:32 PM
lib/hooks/promote-sidebar.react.js
34–37 ↗(On Diff #39518)

Ah yeah that makes way more sense, will update

This revision was landed with ongoing or failed builds.Fri, Apr 26, 12:12 PM
This revision was automatically updated to reflect the committed changes.