refactor(web): remove typescript
This commit is contained in:
9
packages/web/src/hooks/usePaymentPlans.ee.js
Normal file
9
packages/web/src/hooks/usePaymentPlans.ee.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { GET_PAYMENT_PLANS } from 'graphql/queries/get-payment-plans.ee';
|
||||
export default function usePaymentPlans() {
|
||||
const { data, loading } = useQuery(GET_PAYMENT_PLANS);
|
||||
return {
|
||||
plans: data?.getPaymentPlans || [],
|
||||
loading,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user