refactor(web): remove typescript
This commit is contained in:
10
packages/web/src/hooks/usePaddleInfo.ee.js
Normal file
10
packages/web/src/hooks/usePaddleInfo.ee.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { GET_PADDLE_INFO } from 'graphql/queries/get-paddle-info.ee';
|
||||
export default function usePaddleInfo() {
|
||||
const { data, loading } = useQuery(GET_PADDLE_INFO);
|
||||
return {
|
||||
sandbox: data?.getPaddleInfo?.sandbox,
|
||||
vendorId: data?.getPaddleInfo?.vendorId,
|
||||
loading,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user