Page MenuHomePhabricator

[lib/native] lift useIsCurrentUserStaff hook into lib
ClosedPublic

Authored by ginsu on Sep 13 2023, 1:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 2, 2:30 AM
Unknown Object (File)
Sun, Sep 1, 10:56 PM
Unknown Object (File)
Sun, Aug 25, 7:50 PM
Unknown Object (File)
Tue, Aug 13, 2:31 PM
Unknown Object (File)
Tue, Aug 13, 4:28 AM
Unknown Object (File)
Tue, Aug 13, 4:05 AM
Unknown Object (File)
Thu, Aug 8, 8:43 PM
Unknown Object (File)
Thu, Aug 8, 8:43 PM
Subscribers

Details

Summary

To better test the light mode/color famlies on web, I wanted to create an interface to make it easy to toggle between light mode and dark mode. Since this will be longer work in progress process, I wanted to gate this interface so only Comm staff can see it. As a first step to this, I want to lift useIsCurrentUserStaff into lib so web can use this hook too

Test Plan

flow and confirmed that useIsCurrentUserStaff still returns the same value as it did when it lived in native

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable