HomePhabricator
Diffusion Comm 50421aba1c22

[lib] Introduce `useAvailableThreadMemberActions` and consume in `web/Member`

Tags
None
Referenced Files
F1756564: b6778a.png
May 14 2024, 10:33 AM
File Not Attached
F1756563: d3e5af.png
May 14 2024, 10:33 AM
File Not Attached
Subscribers
None

Description

[lib] Introduce useAvailableThreadMemberActions and consume in web/Member

Summary:
Similar to getAvailableThreadMemberActions but consumes useThreadHasPermission instead of threadHasPermission.

Also consume hook in web/Member to show usage.

Test Plan:
flow + close reading for now

Logged return value of getAvailableThreadMemberActions before and useAvailableThreadMemberActions after to ensure that they remained the same.

Before:

d3e5af.png (406×480 px, 40 KB)

After:

b6778a.png (300×780 px, 34 KB)

Reviewers: ashoat, ginsu, tomek, varun, will

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D11913

Details

Provenance
atulAuthored on May 14 2024, 10:21 AM
Reviewer
ashoat
Differential Revision
D11913: [lib] Introduce `useAvailableThreadMemberActions` and consume in `web/Member`
Parents
rCOMM57b16fd87e6a: [nix] upgrade mariadb from 10.8 to 10.11
Branches
Unknown
Tags
Unknown