@codecademy/brand 0.16.1-alpha.6e91e8c71d.0 → 0.17.0-alpha.2ec7fcac4a.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.
@@ -4,7 +4,7 @@ import { TinyBlocks } from '@codecademy/gamut-illustrations';
4
4
  import { Background } from '@codecademy/gamut-styles';
5
5
  import * as React from 'react';
6
6
  import { useContext, useEffect, useRef } from 'react';
7
- import { CertPathContext, HeaderQuizContext } from '../../../GlobalHeader';
7
+ import { HeaderQuizContext } from '../../../GlobalHeader';
8
8
  import { careerPaths, getTopSubjects, topLanguages } from '../../../lib/catalogList';
9
9
  import { DescriptionSectionContainer, LayoutGridAntiAliased, useMegaMenuHeaderResponsiveStyles } from '../../shared';
10
10
  import { useAppHeaderDropdownContext } from '../AppHeaderDropdownProvider';
@@ -31,13 +31,6 @@ const catalogButtonData = {
31
31
  href: '/catalog',
32
32
  trackingTarget: 'topnav_catalog_explore_full'
33
33
  };
34
- const itHighlightData = {
35
- text: 'Stand out in IT with new skill paths to prepare for top industry certifications.',
36
- id: 'nav-highlight',
37
- type: 'link',
38
- href: '/catalog/subject/information-technology?type=skill-path',
39
- trackingTarget: 'topnav_catalog_banner_it'
40
- };
41
34
  const certPrepHighlight = {
42
35
  text: 'Prepare for top industry certifications — explore certification prep paths​.',
43
36
  id: 'nav-highlight',
@@ -61,9 +54,6 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef((_ref, ref)
61
54
  showOnboardingQuiz,
62
55
  showSortingQuiz
63
56
  } = useContext(HeaderQuizContext);
64
- const {
65
- newCertPathsEnabled
66
- } = useContext(CertPathContext);
67
57
  const tabIndex = isOpen === false ? -1 : 0;
68
58
  const styles = useMegaMenuHeaderResponsiveStyles();
69
59
  const bannerStyles = useBannerResponsiveStyles();
@@ -73,7 +63,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef((_ref, ref)
73
63
  setFirstItemRef(firstElemRef.current);
74
64
  }
75
65
  }, [setFirstItemRef, firstElemRef]);
76
- const navHighlightData = newCertPathsEnabled ? certPrepHighlight : itHighlightData;
66
+ const navHighlightData = certPrepHighlight;
77
67
  const topSubjects = getTopSubjects();
78
68
  const onClick = (event, linkItem) => {
79
69
  handleClose?.();
@@ -186,7 +176,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef((_ref, ref)
186
176
  children: /*#__PURE__*/_jsxs(FlexBox, {
187
177
  alignItems: "center",
188
178
  gap: 8,
189
- children: [item.text, !newCertPathsEnabled && item.badge]
179
+ children: [item.text, item.badge]
190
180
  })
191
181
  })
192
182
  }, item.id)), topSubjects.map(item => /*#__PURE__*/_jsx(Box, {
@@ -2,6 +2,6 @@ import * as React from 'react';
2
2
  import { AppHeaderAction, AppHeaderResourcesDropdownItem } from '../../shared';
3
3
  export type AppHeaderResourceDropdownProps = AppHeaderAction & {
4
4
  item: AppHeaderResourcesDropdownItem;
5
- isAnon: boolean;
5
+ isAnon: Boolean;
6
6
  };
7
7
  export declare const AppHeaderResourcesDropdown: React.FC<AppHeaderResourceDropdownProps>;
@@ -3,6 +3,4 @@ import { SearchPaneProps } from './types';
3
3
  export declare const SemiboldSearchIcon: import("@emotion/styled").StyledComponent<(import("@codecademy/gamut-icons").GamutIconProps & React.RefAttributes<SVGSVGElement>) & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  }, {}, {}>;
6
- export declare const SearchPane: React.FC<SearchPaneProps & {
7
- newCertPathsEnabled?: boolean;
8
- }>;
6
+ export declare const SearchPane: React.FC<SearchPaneProps>;