@codecademy/brand 1.20.0 → 1.21.0-alpha.cf644848bb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -220,7 +220,7 @@ const profileBusinessAccount = {
220
220
  icon: PieLineGraphIcon,
221
221
  href: '/business/plans',
222
222
  trackingTarget: 'avatar_business',
223
- text: 'Business Account Management',
223
+ text: 'Admin Dashboard',
224
224
  type: 'link'
225
225
  };
226
226
  const profileHelpCenter = {
@@ -300,11 +300,12 @@ export const proProfile = user => {
300
300
  topSection.push(profileAccount);
301
301
  }
302
302
  topSection.push(profileMyHome);
303
- if ((user?.isAccountManager || user?.isBusinessAdmin) && !user?.hideBusinessAccount) {
304
- topSection.push(profileBusinessAccount);
305
- }
306
303
  topSection.push(profileHelpCenter);
307
304
  topSection.push(profileFeedback);
305
+ const teamsAdminSection = [];
306
+ if ((user?.isAccountManager || user?.isBusinessAdmin) && !user?.hideBusinessAccount) {
307
+ teamsAdminSection.push(profileBusinessAccount);
308
+ }
308
309
  const middleSection = [];
309
310
  if (user.isAdmin) {
310
311
  middleSection.push(profileAdmin);
@@ -316,7 +317,7 @@ export const proProfile = user => {
316
317
  middleSection.push(profileReportBug);
317
318
  }
318
319
  const bottomSection = [profileLogOut];
319
- const popover = [topSection, middleSection, bottomSection];
320
+ const popover = [topSection, teamsAdminSection, middleSection, bottomSection];
320
321
  return {
321
322
  avatar: user.avatar,
322
323
  userDisplayName: user.displayName,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
3
  "description": "Brand component library for Codecademy",
4
- "version": "1.20.0",
4
+ "version": "1.21.0-alpha.cf644848bb.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",