@riosst100/pwa-marketplace 2.8.6 → 2.8.7

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "2.8.6",
4
+ "version": "2.8.7",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -371,12 +371,6 @@ const CheckoutPage = props => {
371
371
  cartItems={cartItems}
372
372
  message={stockStatusMessageElement}
373
373
  />
374
- <h1
375
- className={classes.heading}
376
- data-cy="ChekoutPage-headerText"
377
- >
378
- {headerText}
379
- </h1>
380
374
  </div>
381
375
  {signInContainerElement}
382
376
  <div className={classes.shipping_information_container}>
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { useLocation } from 'react-router-dom';
2
3
  import { bool, shape, string } from 'prop-types';
3
4
  import { useScrollLock } from '@magento/peregrine';
4
5
 
@@ -10,6 +11,8 @@ import cn from 'classnames';
10
11
 
11
12
  const Main = props => {
12
13
  const { children, isMasked } = props;
14
+ const location = useLocation();
15
+ const isCheckoutPage = location.pathname === '/checkout';
13
16
  const classes = useStyle(defaultClasses, props.classes);
14
17
 
15
18
  const rootClass = isMasked ? classes.root_masked : classes.root;
@@ -19,9 +22,9 @@ const Main = props => {
19
22
 
20
23
  return (
21
24
  <main className={rootClass}>
22
- <Header />
25
+ {!isCheckoutPage && <Header />}
23
26
  <div className={cn(pageClass, 'main-content-container pb-16 !min-h-[50vh]')}>{children}</div>
24
- <Footer />
27
+ {!isCheckoutPage && <Footer />}
25
28
  </main>
26
29
  );
27
30
  };