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 {
|
||||
ApplePayBanner,
|
||||
ApplePayButton,
|
||||
// ApplePayButton,
|
||||
GooglePayBanner,
|
||||
GooglePayButton,
|
||||
CardButton,
|
||||
// GooglePayButton,
|
||||
// CardButton,
|
||||
CardModal,
|
||||
} from "./methods";
|
||||
import ErrorModal from "./ErrorModal";
|
||||
|
||||
@ -14,7 +14,7 @@ export default function CheckoutForm() {
|
||||
const [message, setMessage] = useState("");
|
||||
const [isProcessing, setIsProcessing] = useState<boolean>(false);
|
||||
|
||||
const handleSubmit = async (e: any) => {
|
||||
const handleSubmit = async (e: React.SyntheticEvent) => {
|
||||
e.preventDefault();
|
||||
|
||||
if (!stripe || !elements) {
|
||||
|
||||
@ -16,8 +16,8 @@ interface StripeModalProps {
|
||||
export function StripeModal({
|
||||
open,
|
||||
onClose,
|
||||
onSuccess,
|
||||
onError,
|
||||
// onSuccess,
|
||||
// onError,
|
||||
}: StripeModalProps): JSX.Element {
|
||||
const api = useApi();
|
||||
const [stripePromise, setStripePromise] =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user