@codecademy/brand 1.17.2 → 1.17.3-alpha.baa39865d1.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.
@@ -130,7 +130,7 @@ export const teamsHeaderItems = user => {
130
130
  if (user.isBusinessUser) {
131
131
  rightItems.push(contactSales);
132
132
  }
133
- if (user.isAccountManager && user.inBusinessTrial) {
133
+ if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
134
134
  rightItems.push(addPayment);
135
135
  }
136
136
  rightItems.push(proProfile(user));
@@ -172,7 +172,7 @@ export const teamsMobileHeaderItems = user => {
172
172
  const leftItems = [logo];
173
173
  const rightItems = [];
174
174
  const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), careerCenter, proProfile(user)];
175
- if (user.isAccountManager && user.inBusinessTrial) {
175
+ if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
176
176
  mainMenuItems.push(addPayment);
177
177
  }
178
178
  if (user.isBusinessUser) {
@@ -44,6 +44,7 @@ export type User = {
44
44
  isPlusUser?: boolean;
45
45
  isBusinessUser?: boolean;
46
46
  inBusinessTrial?: boolean;
47
+ hasBusinessSubscription?: boolean;
47
48
  proCheckoutUrl?: string;
48
49
  showProUpgrade?: boolean;
49
50
  hideCareerPaths?: boolean;
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.17.2",
4
+ "version": "1.17.3-alpha.baa39865d1.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",