[lint][lg]: fix lint errors
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user