@codecademy/brand 1.18.2-alpha.ae8e29e122.0 → 1.18.2-alpha.b1c69a37ff.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.
@@ -13,6 +13,5 @@ export type CourseCardProps = {
13
13
  headingLevel?: HeadingTags;
14
14
  timeToComplete?: number | null;
15
15
  isProUser?: boolean;
16
- isInOpenFirstModuleVariant?: boolean;
17
16
  };
18
17
  export declare const CourseCard: React.FC<CourseCardProps>;
@@ -1,11 +1,10 @@
1
1
  import { ContentGroupBaseCard } from '../ContentGroupBaseCard';
2
- import { CertificateComponent, Divider, FreeModuleComponent } from '../ContentGroupBaseCard/shared';
2
+ import { CertificateComponent, Divider } from '../ContentGroupBaseCard/shared';
3
3
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  export const CourseCard = _ref => {
5
5
  let {
6
6
  title,
7
7
  lessonCount,
8
- contentModuleIds,
9
8
  grantsCertificate,
10
9
  shortDescription,
11
10
  difficulty,
@@ -13,17 +12,12 @@ export const CourseCard = _ref => {
13
12
  pro,
14
13
  isFullSize,
15
14
  headingLevel = 'h3',
16
- timeToComplete,
17
- isProUser = false,
18
- isInOpenFirstModuleVariant = false
15
+ timeToComplete
19
16
  } = _ref;
20
17
  // only show certificates for pro exclusive courses, since only pro users can do pro courses & only pro users can gain certificates
21
18
  // edge case here: pro users who are logged in wont be able to tell - from the card - that a free course can grant them a cert as well
22
19
  const showCertificate = grantsCertificate && pro;
23
-
24
- // after the experiment is over we can just use the user pro status and module count
25
- const showFreeFirstModule = !isProUser && isInOpenFirstModuleVariant && pro && contentModuleIds.length > 1;
26
- return /*#__PURE__*/_jsxs(ContentGroupBaseCard, {
20
+ return /*#__PURE__*/_jsx(ContentGroupBaseCard, {
27
21
  headerBackgroundColor: "green-100",
28
22
  headingLevel: headingLevel,
29
23
  headerText: pro ? 'Course' : 'Free course',
@@ -35,10 +29,8 @@ export const CourseCard = _ref => {
35
29
  imageSrc: "https://static-assets.codecademy.com/Courses/Course-Cards/pillars.svg",
36
30
  enrollmentStatus: enrollmentStatus,
37
31
  timeToComplete: timeToComplete,
38
- children: [showFreeFirstModule && /*#__PURE__*/_jsxs(_Fragment, {
39
- children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(FreeModuleComponent, {})]
40
- }), showCertificate && /*#__PURE__*/_jsxs(_Fragment, {
32
+ children: showCertificate && /*#__PURE__*/_jsxs(_Fragment, {
41
33
  children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CertificateComponent, {})]
42
- })]
34
+ })
43
35
  });
44
36
  };
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.18.2-alpha.ae8e29e122.0",
4
+ "version": "1.18.2-alpha.b1c69a37ff.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",