diff --git a/frontend/public/src/components/CourseProductDetailEnroll.js b/frontend/public/src/components/CourseProductDetailEnroll.js index 607685d407..1469c5fa73 100644 --- a/frontend/public/src/components/CourseProductDetailEnroll.js +++ b/frontend/public/src/components/CourseProductDetailEnroll.js @@ -11,7 +11,11 @@ import { Modal, ModalBody, ModalHeader } from "reactstrap" import Loader from "./Loader" import { routes } from "../lib/urls" -import {getFlexiblePriceForProduct, formatLocalePrice, checkFeatureFlag} from "../lib/util" +import { + getFlexiblePriceForProduct, + formatLocalePrice, + checkFeatureFlag +} from "../lib/util" import { EnrollmentFlaggedCourseRun } from "../flow/courseTypes" import { coursesSelector, @@ -244,8 +248,12 @@ export class CourseProductDetailEnroll extends React.Component< course.page && course.page.financial_assistance_form_url && !run.approved_flexible_price_exists ? ( - + Need financial assistance? ) : null @@ -313,10 +321,10 @@ export class CourseProductDetailEnroll extends React.Component<

- Certificate track:{" "} + Certificate track: {product && - run.is_upgradable && - formatLocalePrice(getFlexiblePriceForProduct(product))} + run.is_upgradable && + formatLocalePrice(getFlexiblePriceForProduct(product))} <>
{canUpgrade ? ( @@ -339,7 +347,9 @@ export class CourseProductDetailEnroll extends React.Component<

- +
Add to Cart
diff --git a/frontend/public/src/components/Header.js b/frontend/public/src/components/Header.js index 4ab558d557..4d763ef38a 100644 --- a/frontend/public/src/components/Header.js +++ b/frontend/public/src/components/Header.js @@ -10,7 +10,7 @@ import TopBar from "./TopBar" type Props = { currentUser: CurrentUser, - location: ?Location, + location: ?Location } const Header = ({ currentUser, location }: Props) => { diff --git a/frontend/public/src/components/TopBar.js b/frontend/public/src/components/TopBar.js index 09c558c82f..4a479ee1af 100644 --- a/frontend/public/src/components/TopBar.js +++ b/frontend/public/src/components/TopBar.js @@ -14,7 +14,7 @@ import { checkFeatureFlag } from "../lib/util" type Props = { currentUser: CurrentUser, - location: ?Location, + location: ?Location } const TopBar = ({ currentUser }: Props) => { @@ -68,36 +68,38 @@ const TopBar = ({ currentUser }: Props) => {
{currentUser.is_authenticated ? ( <> - {newCartDesign ? - (<> + {newCartDesign ? ( + <>