I want to introduce this hook to web so that we can gate some a new appearance settings for non staff members while the light mode/color families for web project is in progress
Depends on D9193
Differential D9194
[web] introduce useStaffCanSee hook for web ginsu on Sep 13 2023, 1:49 PM. Authored by Tags None Referenced Files
Details
I want to introduce this hook to web so that we can gate some a new appearance settings for non staff members while the light mode/color families for web project is in progress Depends on D9193 flow and confirmed that the correct value was being returned by hook (returns true during dev mode or when the user is a member of the staff array)
Diff Detail
Event TimelineComment Actions Seems reasonable, does it make sense to preemptively just put this in lib as well though like useIsCurrentUserStaff Comment Actions
I thought about that but native has it's own version of the useStaffCanSee hook that is slightly different. The native version of useStaffCanSee also considers if the user is using a staff release as well that web does not need to consider. I thought it would make more sense/be less confusing for other devs that use this in the future if the different versions of each hook lived in their own respective platform folders, but if others disagree happy to make the necessary changes |