Skip to content

Commit

Permalink
Removing unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrosa committed Feb 28, 2025
1 parent e33bfa9 commit a6f3cb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/blocks/upe/upe-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ export const upeElement = ( paymentMethod, api, upeConfig ) => {
/**
* Get the general element for the UPE.
*
* @param {WCStripeAPI} api The Stripe API object.
* @param {string} paymentMethod The payment method name.
* @param {Object} upeConfig The UPE configuration.
* @param {*} props The props.
* @param {WCStripeAPI} props.api The Stripe API object.
* @param {string} props.paymentMethod The payment method name.
* @param {Object} props.upeConfig The UPE configuration.
* @return {JSX.Element} The general element for the UPE.
*/
const GeneralElement = ( api, paymentMethod, upeConfig, props ) => {
const GeneralElement = ( { api, paymentMethod, upeConfig, ...props } ) => {
const [ paymentIntentId ] = useState( null );
return (
<PaymentElements
Expand Down

0 comments on commit a6f3cb1

Please sign in to comment.