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