@codecademy/brand 0.17.2 → 0.17.3

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.
@@ -8,5 +8,4 @@ export type CompanyLinksProps = {
8
8
  referralRockUrls?: ReferralRockUrls;
9
9
  isBusinessUser?: boolean;
10
10
  };
11
- export declare const STUDENT_BEANS_BASE_URL = "https://connect.studentbeans.com/v4/hosted/codecademy/";
12
11
  export declare const CompanyLinks: React.FC<CompanyLinksProps>;
@@ -7,14 +7,6 @@ import { FooterLinkItem, FooterLinkItems, FooterLinkItemWithAnchor } from '../Fo
7
7
  import { ReferAFriendLinkWithModal } from './ReferralRock/ReferAFriendLinkWithModal';
8
8
  import { SocialMediaLinks } from './SocialMediaLinks';
9
9
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
- export const STUDENT_BEANS_BASE_URL = 'https://connect.studentbeans.com/v4/hosted/codecademy/';
11
- const STUDENT_BEANS_GEOS = ['US', 'GB', 'CA'];
12
- const getStudentBeansUrlByGeo = geo => {
13
- if (geo === 'GB') {
14
- return STUDENT_BEANS_BASE_URL + 'UK';
15
- }
16
- return STUDENT_BEANS_BASE_URL + geo;
17
- };
18
10
  export const CompanyLinks = _ref => {
19
11
  let {
20
12
  hidePricing,
@@ -73,18 +65,7 @@ export const CompanyLinks = _ref => {
73
65
  }), referralRockUrls && userGeo === 'US' ? /*#__PURE__*/_jsx(ReferAFriendLinkWithModal, {
74
66
  referralRockUrls: referralRockUrls,
75
67
  onClick: onClick
76
- }) : null, userGeo && STUDENT_BEANS_GEOS.includes(userGeo) && /*#__PURE__*/_jsx(FooterLinkItem, {
77
- children: /*#__PURE__*/_jsx(Anchor, {
78
- href: getStudentBeansUrlByGeo(userGeo),
79
- onClick: event => onClick({
80
- event,
81
- target: 'student-beans'
82
- }),
83
- target: "_blank",
84
- variant: "interface",
85
- children: "Student Beans"
86
- })
87
- })]
68
+ }) : null]
88
69
  })]
89
70
  });
90
71
  const company = /*#__PURE__*/_jsxs(_Fragment, {
@@ -121,6 +102,16 @@ export const CompanyLinks = _ref => {
121
102
  variant: "interface",
122
103
  children: "Affiliates"
123
104
  })
105
+ }), /*#__PURE__*/_jsx(FooterLinkItem, {
106
+ children: /*#__PURE__*/_jsx(Anchor, {
107
+ href: "/pages/partnerships",
108
+ onClick: event => onClick({
109
+ event,
110
+ target: 'partnerships'
111
+ }),
112
+ variant: "interface",
113
+ children: "Partnerships"
114
+ })
124
115
  }), /*#__PURE__*/_jsx(FooterLinkItem, {
125
116
  children: /*#__PURE__*/_jsx(SocialMediaLinks, {})
126
117
  })]
@@ -5,5 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof GlobalFooter>;
6
6
  export declare const Default: Story;
7
7
  export declare const HidePricing: Story;
8
- export declare const StudentBeans: Story;
9
8
  export declare const ClickableMadeIn: Story;
@@ -17,13 +17,6 @@ export const HidePricing = {
17
17
  }),
18
18
  name: 'Hide Pricing'
19
19
  };
20
- export const StudentBeans = {
21
- render: args => /*#__PURE__*/_jsx(GlobalFooter, {
22
- ...args,
23
- userGeo: "US"
24
- }),
25
- name: 'Student Beans'
26
- };
27
20
  export const ClickableMadeIn = {
28
21
  render: args => /*#__PURE__*/_jsx(GlobalFooter, {
29
22
  ...args,
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": "0.17.2",
4
+ "version": "0.17.3",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",