Linted the whole project with eslint

This commit was merged in pull request #3.
This commit is contained in:
2023-08-31 19:42:15 +02:00
parent cbc4d839d0
commit 7be98e1793
29 changed files with 2931 additions and 1686 deletions

View File

@@ -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<