@riosst100/pwa-marketplace 2.1.7 → 2.1.9
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 +1 -1
- package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +1 -0
- package/src/overwrites/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +1 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Product/product.js +1 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +1 -1
package/package.json
CHANGED
|
@@ -589,6 +589,7 @@ export const useProductFullDetail = props => {
|
|
|
589
589
|
price: productPrice?.final_price,
|
|
590
590
|
price_range: product?.price_range,
|
|
591
591
|
sku: product.sku,
|
|
592
|
+
publish_status: product.publish_status,
|
|
592
593
|
term_and_conditions: product.term_and_conditions,
|
|
593
594
|
link_to_other_stores: product.link_to_other_stores,
|
|
594
595
|
shipping_policy: product.shipping_policy,
|
|
@@ -7,7 +7,7 @@ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
|
|
|
7
7
|
import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
|
|
8
8
|
import ProductFullDetail from '@magento/venia-ui/lib/components/ProductFullDetail';
|
|
9
9
|
import mapProduct from '@magento/venia-ui/lib/util/mapProduct';
|
|
10
|
-
import ProductShimmer from '
|
|
10
|
+
import ProductShimmer from '@magento/venia-ui/lib/RootComponents/Product/product.shimmer';
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
13
|
* As of this writing, there is no single Product query type in the M2.3 schema.
|
|
@@ -444,7 +444,7 @@ const ProductFullDetail = props => {
|
|
|
444
444
|
return result;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
const productPreviewMessages = isPreview ? (
|
|
447
|
+
const productPreviewMessages = isPreview && productDetails?.publish_status != 1 ? (
|
|
448
448
|
<div
|
|
449
449
|
style={{
|
|
450
450
|
backgroundColor: "white", // Light gray background
|