fix: build error

This commit is contained in:
gofnnp 2023-10-19 03:15:35 +04:00
parent 3d1361b57f
commit 237dec5681
3 changed files with 6 additions and 6 deletions

View File

@ -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";

View File

@ -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) {

View File

@ -16,8 +16,8 @@ interface StripeModalProps {
export function StripeModal({
open,
onClose,
onSuccess,
onError,
// onSuccess,
// onError,
}: StripeModalProps): JSX.Element {
const api = useApi();
const [stripePromise, setStripePromise] =