Page MenuHomePhabricator

[lib/native] lift useIsCurrentUserStaff hook into lib
ClosedPublic

Authored by ginsu on Sep 13 2023, 1:41 PM.
Tags
None
Referenced Files
F3140677: D9193.diff
Sun, Nov 3, 5:05 AM
Unknown Object (File)
Fri, Oct 4, 7:59 AM
Unknown Object (File)
Sep 26 2024, 3:22 AM
Unknown Object (File)
Sep 20 2024, 3:06 AM
Unknown Object (File)
Sep 14 2024, 7:59 AM
Unknown Object (File)
Sep 8 2024, 1:41 PM
Unknown Object (File)
Sep 8 2024, 1:40 PM
Unknown Object (File)
Sep 8 2024, 1:37 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
No Lint Coverage
Unit
No Test Coverage