HomePhabricator
Diffusion Comm 99e225d4681a

[web] Move `hasPermissionForTab` up from `ThreadSettingsModal` to…

Description

[web] Move hasPermissionForTab up from ThreadSettingsModal to ConnectedThreadSettingsModal

Summary:
Move hasPermissionForTab up from ThreadSettingsModal to ConnectedThreadSettingsModal.

As part of the work to refactor ThreadSettingsModal... specifically to turn it into a functional component.


Depends on D3769

Test Plan:

  1. Open ThreadSettingsModal for a few threads
  2. Ensure that the expected tabs are visible based on permission

Reviewers: def-au1t, palys-swm

Reviewed By: palys-swm

Subscribers: ashoat, Adrian, karol-bisztyga, benschac, yayabosh

Differential Revision: https://phabricator.ashoat.com/D3770