From b8f8cb25e40f3a13399de062df53048aef676b55 Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 10 Jan 2025 11:00:47 -0500 Subject: [PATCH] format --- .../components/CourseProductDetailEnroll.js | 26 ++++++++---- frontend/public/src/components/Header.js | 2 +- frontend/public/src/components/TopBar.js | 42 ++++++++++--------- frontend/public/src/containers/App.js | 2 +- 4 files changed, 42 insertions(+), 30 deletions(-) diff --git a/frontend/public/src/components/CourseProductDetailEnroll.js b/frontend/public/src/components/CourseProductDetailEnroll.js index 607685d40..1469c5fa7 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 4ab558d55..4d763ef38 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 09c558c82..4a479ee1a 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 ? ( + <>