Page MenuHomePhabricator

[lib/native] lift useIsCurrentUserStaff hook into lib

Authored by ginsu on Sep 13 2023, 1:41 PM.
Referenced Files
Unknown Object (File)
Wed, Jul 17, 4:01 AM
Unknown Object (File)
Tue, Jul 16, 5:39 PM
Unknown Object (File)
Sun, Jul 7, 1:32 PM
Unknown Object (File)
Sun, Jul 7, 9:42 AM
Unknown Object (File)
Jun 16 2024, 6:03 PM
Unknown Object (File)
Jun 14 2024, 4:42 AM
Unknown Object (File)
Jun 10 2024, 7:49 PM
Unknown Object (File)
Jun 10 2024, 7:25 PM



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

rCOMM Comm
Lint Not Applicable
Tests Not Applicable