diff --git a/src/components/projects/ListProjects.jsx b/src/components/projects/ListProjects.jsx index bdd1387..ed60706 100644 --- a/src/components/projects/ListProjects.jsx +++ b/src/components/projects/ListProjects.jsx @@ -2,10 +2,13 @@ import React from 'react' import { withStyles } from '@material-ui/core/styles' import Typography from '@material-ui/core/Typography' import classnames from 'classnames' +import { useQuery } from '@apollo/react-hooks' import styles from './styles/ListProjects' +import { getProjects } from './queries' function ListProjects({ classes }) { - console.log({classes}) + const { loading, error, data } = useQuery(getProjects); + console.log({classes, loading, error, data}) return (