diff --git a/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCards.spec.js.snap b/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCards.spec.js.snap index 8158b1cabf..8a2fcd7129 100644 --- a/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCards.spec.js.snap +++ b/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCards.spec.js.snap @@ -62,6 +62,17 @@ exports[`it renders correctly when it has cards 1`] = ` className="root" /> + +
+ +
+
+ +
+ +
+
{ ); } - const cardBalance = shouldDisplayCardBalance && ( -
- - - - -
- ); - const containerClass = shouldDisplayCardError ? classes.card_input_container_error : classes.card_input_container; + const cardBalance = ( +
+ {checkBalanceData && shouldDisplayCardBalance ? ( +
+ + +
+ ) : ( + + {cardEntryErrorMessage} + + )} +
+ ); + const cardEntryContents = (
{ field="card" mask={value => value && value.trim()} maskOnBlur={true} - message={cardEntryErrorMessage} + // message={cardEntryErrorMessage} placeholder={formatMessage({ id: 'giftCards.cardEntry', defaultMessage: 'Enter card number' @@ -180,7 +186,7 @@ const GiftCards = props => { validate={isRequired} />
- {cardBalance} + {cardBalance}