Feature Highlights: move setting to a feature toggle (#44780)

* Add toggle

* Use the toggle

* Cleanup
This commit is contained in:
Alex Khomenko
2022-02-03 13:53:23 +02:00
committed by GitHub
parent c23bc1e7b7
commit a79c048344
8 changed files with 16 additions and 15 deletions

View File

@@ -130,7 +130,7 @@ export class TeamPages extends PureComponent<Props, State> {
case PageTypes.GroupSync:
if (isSignedInUserTeamAdmin && isSyncEnabled) {
return <TeamGroupSync />;
} else if (config.featureHighlights.enabled) {
} else if (config.featureToggles.featureHighlights) {
return (
<UpgradeBox
text={

View File

@@ -40,7 +40,7 @@ export function buildNavModel(team: Team): NavModelItem {
if (featureEnabled('teamsync')) {
navModel.children!.push(teamGroupSync);
} else if (config.featureHighlights.enabled) {
} else if (config.featureToggles.featureHighlights) {
navModel.children!.push({ ...teamGroupSync, tabSuffix: ProBadge });
}