Linted the whole project with eslint
This commit was merged in pull request #3.
This commit is contained in:
@@ -6,28 +6,28 @@ import { Layout } from "../components/layout";
|
||||
import { InferGetStaticPropsType } from "next";
|
||||
|
||||
export default function HomePage(
|
||||
props: InferGetStaticPropsType<typeof getStaticProps>
|
||||
props: InferGetStaticPropsType<typeof getStaticProps>
|
||||
) {
|
||||
const posts = props.data.postConnection.edges;
|
||||
const posts = props.data.postConnection.edges;
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Section className="flex-1">
|
||||
<Container size="large" width="small">
|
||||
<Posts data={posts} />
|
||||
</Container>
|
||||
</Section>
|
||||
</Layout>
|
||||
);
|
||||
return (
|
||||
<Layout>
|
||||
<Section className="flex-1">
|
||||
<Container size="large" width="small">
|
||||
<Posts data={ posts } />
|
||||
</Container>
|
||||
</Section>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export const getStaticProps = async () => {
|
||||
const tinaProps = await client.queries.pageQuery();
|
||||
return {
|
||||
props: {
|
||||
...tinaProps,
|
||||
},
|
||||
};
|
||||
const tinaProps = await client.queries.pageQuery();
|
||||
return {
|
||||
props: {
|
||||
...tinaProps
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export type PostsType = InferGetStaticPropsType<
|
||||
|
||||
Reference in New Issue
Block a user