1
0
Fork 0

chore: Fixed linter warnings

This commit is contained in:
Joost De Cock 2022-01-20 09:07:38 +01:00
parent 56df5d5287
commit 2234155052
70 changed files with 103 additions and 309 deletions

View file

@ -74,7 +74,7 @@ const PostPage = ({ post, author }) => {
href="#author"
className="text-secondary hover:text-secondary-focus"
>
{author?.displayname || 'FIXME: No displayname'}
{author.displayname || 'FIXME: No displayname'}
</a>
</span>
</div>
@ -99,17 +99,6 @@ const PostPage = ({ post, author }) => {
</article>
</Page>
)
return (
<Page app={app} title='Blog' slug='blog'>
<article className="mb-12">
<div className="strapi prose lg:prose-lg mb-12 m-auto">
<MdxWrapper mdx={props.post.mdx} />
</div>
</article>
<Author author={author} type={props.type} t={props.t}/>
</Page>
)
}
export const getStaticProps = async (props) => {