@codecademy/brand 5.0.0-alpha.bd910bfbb.0 → 5.0.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.
|
@@ -7,11 +7,9 @@ export const DropdownList = ({
|
|
|
7
7
|
menuButtonId,
|
|
8
8
|
onClose
|
|
9
9
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
listRefs.push(/*#__PURE__*/React.createRef());
|
|
14
|
-
}
|
|
10
|
+
const listRefs = React.useMemo(() => Array.from({
|
|
11
|
+
length: dropdownItems.length
|
|
12
|
+
}, () => /*#__PURE__*/React.createRef()), [dropdownItems.length]);
|
|
15
13
|
const handleKeyDown = (event, index) => {
|
|
16
14
|
if (event.key === 'Tab') {
|
|
17
15
|
event.preventDefault();
|
|
@@ -225,7 +225,7 @@ const profileMyProfile = {
|
|
|
225
225
|
const profileAccount = {
|
|
226
226
|
id: 'account',
|
|
227
227
|
icon: GearIcon,
|
|
228
|
-
href: '/
|
|
228
|
+
href: '/my_account',
|
|
229
229
|
trackingTarget: 'avatar_settings',
|
|
230
230
|
text: 'Account + Billing',
|
|
231
231
|
type: 'link'
|
|
@@ -368,7 +368,7 @@ export const unpausePro = {
|
|
|
368
368
|
dataTestId: 'unpause-link',
|
|
369
369
|
id: 'unpause-pro',
|
|
370
370
|
text: 'Unpause Now',
|
|
371
|
-
href: '/
|
|
371
|
+
href: '/my_account/billing',
|
|
372
372
|
trackingTarget: 'topnav_pro_unpause',
|
|
373
373
|
type: 'fill-button'
|
|
374
374
|
};
|
|
@@ -42,7 +42,7 @@ const getCTAUrl = ({
|
|
|
42
42
|
case Product.Silver:
|
|
43
43
|
case Product.Gold:
|
|
44
44
|
if (userHasSilver) {
|
|
45
|
-
return '/
|
|
45
|
+
return '/my_account/billing?changePlan=true';
|
|
46
46
|
}
|
|
47
47
|
return `/checkout?plan_id=${planId || undefined}`;
|
|
48
48
|
case Product.Teams:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Brand component library for Codecademy",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "git@github.com:codecademy-engineering/mono.git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"freezeframe": "^5.0.2",
|
|
23
23
|
"intersection-observer": "^0.12.0",
|
|
24
24
|
"ismobilejs": "^1.1.1",
|
|
25
|
-
"lodash": "^4.
|
|
25
|
+
"lodash": "^4.18.1",
|
|
26
26
|
"pluralize": "^8.0.0",
|
|
27
27
|
"react-freezeframe": "^5.0.2",
|
|
28
28
|
"react-use": "15.3.8",
|