@codecademy/brand 1.40.1-alpha.6d54e24b1f.0 → 1.40.1-alpha.ef0e55a5b9.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.
@@ -3,9 +3,6 @@ import { AccountingCoinsIcon, ArrowThickCircleUpIcon, ArticleIcon, BookFlipPageI
3
3
  import { renderNewBadge } from '../lib/resourcesList';
4
4
  import { formatEnterpriseUrl } from './urlHelpers';
5
5
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
6
- const shouldShowBusinessDashboardLink = user => {
7
- return (user?.isAccountManager || user?.isBusinessAdmin) && !user?.isSkillsoftUser;
8
- };
9
6
  export const loading = {
10
7
  id: 'header-loading',
11
8
  type: 'render-element',
@@ -291,7 +288,7 @@ export const freeProfile = user => {
291
288
  topSection.push(profileAccount);
292
289
  }
293
290
  topSection.push(profileMyHome);
294
- if (shouldShowBusinessDashboardLink(user)) {
291
+ if ((user?.isAccountManager || user?.isBusinessAdmin) && !user?.isSkillsoftUser) {
295
292
  topSection.push(profileBusinessAccount);
296
293
  }
297
294
  topSection.push(profileHelpCenter);
@@ -317,7 +314,7 @@ export const proProfile = user => {
317
314
  topSection.push(profileHelpCenter);
318
315
  topSection.push(profileFeedback);
319
316
  const teamsAdminSection = [];
320
- if (shouldShowBusinessDashboardLink(user)) {
317
+ if ((user?.isAccountManager || user?.isBusinessAdmin) && !user?.isSkillsoftUser) {
321
318
  teamsAdminSection.push(profileBusinessAccount);
322
319
  }
323
320
  const middleSection = [];
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.40.1-alpha.6d54e24b1f.0",
4
+ "version": "1.40.1-alpha.ef0e55a5b9.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",