Page MenuHomePhabricator

[lib/native] lift useIsCurrentUserStaff hook into lib
ClosedPublic

Authored by ginsu on Sep 13 2023, 1:41 PM.
Tags
None
Referenced Files
F3651506: D9193.id31140.diff
Sun, Jan 5, 6:26 AM
F3651505: D9193.id31095.diff
Sun, Jan 5, 6:26 AM
F3651457: D9193.diff
Sun, Jan 5, 6:24 AM
Unknown Object (File)
Fri, Dec 13, 9:53 PM
Unknown Object (File)
Nov 8 2024, 9:39 PM
Unknown Object (File)
Nov 8 2024, 9:39 PM
Unknown Object (File)
Nov 8 2024, 9:39 PM
Unknown Object (File)
Nov 5 2024, 2:12 AM
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