Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 16, 2025
1 parent 18198cb commit 2acf260
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion frontend/public/scss/product-page/product-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,14 @@ body.new-design {
outline: 2px #28977e solid;
}

form.new-design {
div.new-design {
text-align: right !important;

.btn-upgrade {
width: 86%;
padding: 15px 30px;
background-image: none !important;
text-align: left;

div.upgrade-btn-text {
display: inline-block;
Expand Down
8 changes: 3 additions & 5 deletions frontend/public/src/components/CourseProductDetailEnroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class CourseProductDetailEnroll extends React.Component<

async onAddToCartClick() {
const { addToCart } = this.props
const addToCartResponse = await addToCart(1)
const addToCartResponse = await addToCart("1")
if (isSuccessResponse(addToCartResponse)) {
this.setState({
addedToCartDialogVisibility: true
Expand Down Expand Up @@ -404,12 +404,10 @@ export class CourseProductDetailEnroll extends React.Component<
</div>
<div className="col-md-6 col-sm-12 pr-0">
<div
className={`text-center ${
newCartDesign ? "new-design" : ""
}`}
className={ newCartDesign ? "new-design" : ""}
>
<button
onClick={this.onAddToCartClick}
onClick={this.onAddToCartClick.bind(this)}
type="button"
className="btn btn-upgrade btn-gradient-red-to-blue"
disabled={!canUpgrade}
Expand Down

0 comments on commit 2acf260

Please sign in to comment.