Control UI visibility in ProfileEditor

This commit is contained in:
Fedor Indutny 2024-02-14 12:30:32 -08:00 committed by GitHub
parent 0fe797e511
commit 9b98e20a8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 1 deletions

View file

@ -18,6 +18,7 @@ import {
getUsernameLinkColor,
getUsernameLink,
getUsernameLinkCorrupted,
isInternalUser,
} from '../selectors/items';
import { getMe } from '../selectors/conversations';
import { selectRecentEmojis } from '../selectors/emojis';
@ -81,6 +82,7 @@ function mapStateToProps(
usernameLinkColor,
usernameLinkCorrupted,
usernameLink,
isUsernameDeletionEnabled: isInternalUser(state),
renderEditUsernameModalBody,
};