[lint][lg]: fix lint errors

This commit is contained in:
Tavares Hansen
2020-08-04 19:33:00 -07:00
parent 2a4e55965e
commit 587d820747
32 changed files with 223 additions and 153 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable react/display-name */
import { useQuery } from '@apollo/react-hooks';
import { Table, ErrorMessage } from '../_shared';
import { GET_RESOURCES_QUERY } from '../../graphql/queries';
@@ -46,7 +47,7 @@ const columns = [
},
];
export default function About({ variables }) {
const About: React.FC<{ variables: any }> = ({ variables }) => {
const { loading, error, data } = useQuery(GET_RESOURCES_QUERY, {
variables,
// Setting this value to true will make the component rerender when
@@ -63,4 +64,6 @@ export default function About({ variables }) {
(item) => item.name === variables.resource
);
return <Table columns={columns} data={[resource]} />;
}
};
export default About;

View File

@@ -2,7 +2,7 @@ import { useQuery } from '@apollo/react-hooks';
import { ErrorMessage } from '../_shared';
import { GET_RESOURCES_QUERY } from '../../graphql/queries';
export default function DataExplorer({ variables }) {
const DataExplorer: React.FC<{ variables: any }> = ({ variables }) => {
const { loading, error, data } = useQuery(GET_RESOURCES_QUERY, {
variables,
// Setting this value to true will make the component rerender when
@@ -20,4 +20,6 @@ export default function DataExplorer({ variables }) {
);
return <>{JSON.stringify(resource)}</>;
}
};
export default DataExplorer;