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

View File

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

View File

@ -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] =