Gift Cards component

GiftCards is a child component of the CartPage component. This component shows a form for applying gift cards along with a list of applied Gift Cards in the shopping cart.

Returns: ** **Parameters

Name Type Description
props Object Component props
props.setIsCartUpdating function Callback function to call when adding or removing a gift card
props.classes Object CSS className overrides. See giftCards.module.css for a list of classes you can override.

Example (Importing into your project)

import GiftCards from '@magento/venia-ui/lib/components/CartPage/GiftCards';

Source Code: pwa-studio/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.js

Talons

The Gift Cards component and it’s child components use the Gift Card Talons to perform side effects and calculate the values for rendering the JSX content.