[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

@@ -3,7 +3,7 @@ import { useQuery } from '@apollo/react-hooks';
import { ErrorMessage } from '../_shared';
import { GET_POSTS_QUERY } from '../../graphql/queries';
export default function List() {
const List: React.FC = () => {
const { loading, error, data } = useQuery(GET_POSTS_QUERY, {
// Setting this value to true will make the component rerender when
// the "networkStatus" changes, so we are able to know if it is fetching
@@ -34,4 +34,6 @@ export default function List() {
))}
</>
);
}
};
export default List;

View File

@@ -3,7 +3,7 @@ import { useQuery } from '@apollo/react-hooks';
import { ErrorMessage } from '../_shared';
import { GET_PAGE_QUERY } from '../../graphql/queries';
export default function Page({ variables }) {
const Page: React.FC<{ variables: any }> = ({ variables }) => {
const { loading, error, data } = useQuery(GET_PAGE_QUERY, {
variables,
// Setting this value to true will make the component rerender when
@@ -23,8 +23,10 @@ export default function Page({ variables }) {
{title}
</h1>
<p className="mb-6">Edited: {modified}</p>
<img src={featured_image} className="mb-6" />
<img src={featured_image} className="mb-6" alt="featured_img" />
<div>{parse(content)}</div>
</>
);
}
};
export default Page;

View File

@@ -3,7 +3,7 @@ import { useQuery } from '@apollo/react-hooks';
import { ErrorMessage } from '../_shared';
import { GET_PAGE_QUERY } from '../../graphql/queries';
export default function Post({ variables }) {
const Post: React.FC<{ variables: any }> = ({ variables }) => {
const { loading, error, data } = useQuery(GET_PAGE_QUERY, {
variables,
// Setting this value to true will make the component rerender when
@@ -23,8 +23,10 @@ export default function Post({ variables }) {
{title}
</h1>
<p className="mb-6">Edited: {modified}</p>
<img src={featured_image} className="mb-6" />
<img src={featured_image} className="mb-6" alt="featured_img" />
<div>{parse(content)}</div>
</>
);
}
};
export default Post;