feat: clean up the stripe payment integration

This commit is contained in:
Ahmed Bouhuolia
2024-09-21 09:18:39 +02:00
parent f5a1d68c52
commit 11c56c75a4
18 changed files with 3144 additions and 484 deletions

View File

@@ -1,4 +1,3 @@
.companyLogoWrap {
height: 50px;
width :50px;

View File

@@ -1,13 +1,13 @@
import React, { createContext, useContext, ReactNode } from 'react';
import {
GetSharableLinkMetaResponse,
useGetSharableLinkMeta,
GetInvoicePaymentLinkResponse,
useGetInvoicePaymentLink,
} from '@/hooks/query/payment-link';
import { Spinner } from '@blueprintjs/core';
interface PaymentPortalContextType {
linkId: string;
sharableLinkMeta: GetSharableLinkMetaResponse | undefined;
sharableLinkMeta: GetInvoicePaymentLinkResponse | undefined;
isSharableLinkMetaLoading: boolean;
}
@@ -25,7 +25,7 @@ export const PaymentPortalBoot: React.FC<PaymentPortalBootProps> = ({
children,
}) => {
const { data: sharableLinkMeta, isLoading: isSharableLinkMetaLoading } =
useGetSharableLinkMeta(linkId);
useGetInvoicePaymentLink(linkId);
const value = {
linkId,