Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Alvaro Bueno <alvaro.bueno@mailchimp.com>
  • Loading branch information
delagroove committed Aug 4, 2021
1 parent 4d9569d commit 6e42b9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion components/StripeCard/StripeInput.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useImperativeHandle,useRef } from "react";
import React, { useImperativeHandle, useRef } from "react";

function StripeInput({ component: Component, inputRef, ...props }) {
const elementRef = useRef();
Expand Down
6 changes: 3 additions & 3 deletions components/StripeCard/hooks/useStripePaymentIntent.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default function useStripePaymentIntent() {
input: {
cartId: anonymousCartId || accountCartId,
shopId: shop?._id,
cartToken: anonymousCartToken,
},
},
cartToken: anonymousCartToken
}
}
});

return data?.createStripePaymentIntent;
Expand Down
1 change: 1 addition & 0 deletions components/StripeCard/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import StripeWrapper from "./provider/StripeWrapper";

export { default } from "./StripeCard";

export { StripeWrapper };
10 changes: 2 additions & 8 deletions custom/paymentMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import StripeCard from "components/StripeCard";

const paymentMethods = [
/*
{
displayName: "Credit Card",
InputComponent: StripePaymentInput,
name: "stripe_card",
shouldCollectBillingAddress: true
},
{
displayName: "IOU",
InputComponent: ExampleIOUPaymentForm,
Expand All @@ -22,8 +16,8 @@ const paymentMethods = [
displayName: "Credit Card",
InputComponent: StripeCard,
name: "stripe_payment_intent",
shouldCollectBillingAddress: true,
},
shouldCollectBillingAddress: true
}
];

export default paymentMethods;

0 comments on commit 6e42b9d

Please sign in to comment.