HomePhabricator
Diffusion Comm 6a7b128d9d25

[lib/native/web] convert appendSuffix to useAppendCommunitySuffix

Description

[lib/native/web] convert appendSuffix to useAppendCommunitySuffix

Summary: As I was working on the new navigation sidebar, I noticed that all uses of appendSuffix was being wrapped in a useMemo. To "improve the neighborhood" I converted appendSuffix into a hook and factored out the useMemo into the hook

Test Plan: flow and confirmed that there were no regressions with the community names in the community drawer

Reviewers: atul, rohan, kamil

Reviewed By: rohan

Subscribers: ashoat, tomek

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

Details

Provenance
ginsuAuthored on Dec 13 2023, 2:20 PM
Reviewer
rohan
Differential Revision
D10349: [lib/native/web] convert appendSuffix to useAppendCommunitySuffix
Parents
rCOMMfa2b0e3f6f61: Revert ""Flip the switch" to enable minimal permissions"
Branches
Unknown
Tags
Unknown