fixing kyc delete member, transaction topup request, disbursement saldo
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
import { useContext } from 'react';
|
||||
import { TransactionTopupContext } from './TransactionTopupContext';
|
||||
|
||||
const useTransactionTopupContext = () => {
|
||||
const context = useContext(TransactionTopupContext);
|
||||
|
||||
if (!context) throw new Error('useTransactionTopupContext must be used within AuthProvider');
|
||||
|
||||
return context;
|
||||
};
|
||||
|
||||
export { useTransactionTopupContext };
|
||||
Reference in New Issue
Block a user