feat(settings): make settings screen functional component (#14084)

* feat(settings): convert component to functional component
This commit is contained in:
Calinteodor
2023-11-22 09:47:15 +02:00
committed by GitHub
parent a20bf845ea
commit 40ac57a5d4
3 changed files with 68 additions and 147 deletions

View File

@@ -1,14 +1,12 @@
import { IReduxState } from '../app/types';
import { IStateful } from '../base/app/types';
import { isNameReadOnly } from '../base/config/functions';
import { isNameReadOnly } from '../base/config/functions.any';
import { SERVER_URL_CHANGE_ENABLED } from '../base/flags/constants';
import { getFeatureFlag } from '../base/flags/functions';
import i18next, { DEFAULT_LANGUAGE, LANGUAGES } from '../base/i18n/i18next';
import {
getLocalParticipant
} from '../base/participants/functions';
import { getLocalParticipant } from '../base/participants/functions';
import { toState } from '../base/redux/functions';
import { getHideSelfView } from '../base/settings/functions';
import { getHideSelfView } from '../base/settings/functions.any';
import { parseStandardURIString } from '../base/util/uri';
import { isStageFilmstripEnabled } from '../filmstrip/functions';
import { isFollowMeActive } from '../follow-me/functions';
@@ -26,9 +24,8 @@ import { shouldShowModeratorSettings } from './functions';
*/
export function isServerURLChangeEnabled(stateful: IStateful) {
const state = toState(stateful);
const flag = getFeatureFlag(state, SERVER_URL_CHANGE_ENABLED, true);
return flag;
return getFeatureFlag(state, SERVER_URL_CHANGE_ENABLED, true);
}
/**