fix: build error
This commit is contained in:
parent
3d1361b57f
commit
237dec5681
@ -7,10 +7,10 @@ import { usePayment } from "@/payment";
|
|||||||
import { actions } from "@/store";
|
import { actions } from "@/store";
|
||||||
import {
|
import {
|
||||||
ApplePayBanner,
|
ApplePayBanner,
|
||||||
ApplePayButton,
|
// ApplePayButton,
|
||||||
GooglePayBanner,
|
GooglePayBanner,
|
||||||
GooglePayButton,
|
// GooglePayButton,
|
||||||
CardButton,
|
// CardButton,
|
||||||
CardModal,
|
CardModal,
|
||||||
} from "./methods";
|
} from "./methods";
|
||||||
import ErrorModal from "./ErrorModal";
|
import ErrorModal from "./ErrorModal";
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export default function CheckoutForm() {
|
|||||||
const [message, setMessage] = useState("");
|
const [message, setMessage] = useState("");
|
||||||
const [isProcessing, setIsProcessing] = useState<boolean>(false);
|
const [isProcessing, setIsProcessing] = useState<boolean>(false);
|
||||||
|
|
||||||
const handleSubmit = async (e: any) => {
|
const handleSubmit = async (e: React.SyntheticEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
if (!stripe || !elements) {
|
if (!stripe || !elements) {
|
||||||
|
|||||||
@ -16,8 +16,8 @@ interface StripeModalProps {
|
|||||||
export function StripeModal({
|
export function StripeModal({
|
||||||
open,
|
open,
|
||||||
onClose,
|
onClose,
|
||||||
onSuccess,
|
// onSuccess,
|
||||||
onError,
|
// onError,
|
||||||
}: StripeModalProps): JSX.Element {
|
}: StripeModalProps): JSX.Element {
|
||||||
const api = useApi();
|
const api = useApi();
|
||||||
const [stripePromise, setStripePromise] =
|
const [stripePromise, setStripePromise] =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user