Edit in GitHubLog an issue

ProductListing

Functions

ProductListing(props)React.Element

A child component of the CartPage component. This component renders the product listing on the cart page.

EditModal(props)React.Element

A child component of the ProductListing component. This component renders an edit modal for a product.

A child component of the CartPage component. This component renders the product listing on the cart page.

Returns: Parameters

NameTypeDescription
propsObject
props.setIsCartUpdatingfunctionFunction for setting the updating state of the cart.
props.classesObjectCSS className overrides. See productListing.module.css for a list of classes you can override.

Example (Importing into your project)

Copied to your clipboard
import ProductListing from "@magento/venia-ui/lib/components/CartPage/ProductListing";

A child component of the ProductListing component. This component renders an edit modal for a product.

Returns: Parameters

NameTypeDescription
propsObject
props.itemObjectProduct to edit.
props.setActiveEditItemfunctionFunction for setting the actively editing item See productListingFragments.js for a list of properties for this object.
props.setIsCartUpdatingfunctionFunction for setting the updating state of the cart.
props.classesObjectCSS className overrides. See editModal.module.css for a list of classes you can override.

Example (Importing into your project)

Copied to your clipboard
import EditModal from "@magento/venia-ui/lib/components/CartPage/ProductListing/EditModal";

Source Code: pwa-studio/packages/venia-ui/lib/components/CartPage/ProductListing/productListing.js

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.