feat(settings) add abilty to hide more tab under settings

This commit is contained in:
Mahdhi Rezvi
2022-06-23 18:14:26 +05:30
committed by GitHub
parent 9a99c517ab
commit 8f1fae79e4
2 changed files with 3 additions and 2 deletions

View File

@@ -268,7 +268,8 @@ function _mapStateToProps(state, ownProps) {
const moderatorTabProps = getModeratorTabProps(state);
const { showModeratorSettings } = moderatorTabProps;
const { showLanguageSettings, showNotificationsSettings, showPrejoinSettings } = moreTabProps;
const showMoreTab = showLanguageSettings || showNotificationsSettings || showPrejoinSettings;
const showMoreTab
= configuredTabs.includes('more') && (showLanguageSettings || showNotificationsSettings || showPrejoinSettings);
const showProfileSettings
= configuredTabs.includes('profile') && !state['features/base/config'].disableProfile;
const showCalendarSettings