Skip to content

Commit

Permalink
Add amount prop to card fields component
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya Jain committed Jan 3, 2025
1 parent 96371cb commit 6e1dc64
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/zoid/card-fields/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
getClientID,
getDebug,
getCurrency,
getAmount,
getIntent,
getCommit,
getVault,
Expand Down Expand Up @@ -298,6 +297,12 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize(
value: ({ props }) => props.parent.props.locale,
},

amount: {
type: "object",
value: ({ props }) => props.parent.props.amount,
required: false,
},

onApprove: {
type: "function",
required: false,
Expand Down Expand Up @@ -715,12 +720,6 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize(
value: getCurrency,
},

amount: {
type: "string",
queryParam: false,
value: getAmount,
},

intent: {
type: "string",
queryParam: true,
Expand Down

0 comments on commit 6e1dc64

Please sign in to comment.