Similar to getAvailableThreadMemberActions but consumes useThreadHasPermission instead of threadHasPermission.
Also consume hook in web/Member to show usage.
Differential D11913
[lib] Introduce `useAvailableThreadMemberActions` and consume in `web/Member` atul on May 6 2024, 12:23 PM. Authored by Tags None Referenced Files
Subscribers None
Details Similar to getAvailableThreadMemberActions but consumes useThreadHasPermission instead of threadHasPermission. Also consume hook in web/Member to show usage. flow + close reading for now Logged return value of getAvailableThreadMemberActions before and useAvailableThreadMemberActions after to ensure that they remained the same. Before: After:
Diff Detail
Event TimelineComment Actions Will getAvailableThreadMemberActions be deprecated at the end of this stack? If not, I think it would be good to factor out the logic instead of copy-pasting
|