mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: integrate Stripe payment to invoices
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, { createContext, useContext, useState, ReactNode } from 'react';
|
||||
import { useGetPaymentServices } from '@/hooks/query/payment-services';
|
||||
import React, { createContext, useContext, ReactNode } from 'react';
|
||||
|
||||
interface SelectPaymentMethodsContextType {}
|
||||
|
||||
@@ -25,10 +26,16 @@ interface SelectPaymentMethodsProviderProps {
|
||||
export const SelectPaymentMethodsBoot: React.FC<
|
||||
SelectPaymentMethodsProviderProps
|
||||
> = ({ children }) => {
|
||||
const { isLoading: isPaymentServicesLoading, data: paymentServices } =
|
||||
useGetPaymentServices();
|
||||
|
||||
const value = {
|
||||
paymentServices,
|
||||
isPaymentServicesLoading,
|
||||
};
|
||||
|
||||
return (
|
||||
<SelectPaymentMethodsContext.Provider
|
||||
value={{ }}
|
||||
>
|
||||
<SelectPaymentMethodsContext.Provider value={value}>
|
||||
{children}
|
||||
</SelectPaymentMethodsContext.Provider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user