Skip to content

Commit 4e3d7db

Browse files
committed
chore: Delete unused blogTitle prop
1 parent c096f6e commit 4e3d7db

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pages/blog/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Blog({ posts }) {
2929
<>
3030
<Container>
3131
<BlogSearch>
32-
<Title blogTitle title={!searchTerm && 'Latest Posts'} />
32+
<Title title={!searchTerm && 'Latest Posts'} />
3333
<SearchBar setSearchTerm={setSearchTerm} />
3434
</BlogSearch>
3535
</Container>
@@ -48,8 +48,10 @@ export default function Blog({ posts }) {
4848
}
4949

5050
export async function getStaticProps() {
51-
const PER_PAGE = 1000
52-
const res = await fetch(`https://dev.to/api/articles?username=wdp&per_page=${PER_PAGE}`);
51+
const PER_PAGE = 1000;
52+
const res = await fetch(
53+
`https://dev.to/api/articles?username=wdp&per_page=${PER_PAGE}`,
54+
);
5355
const posts = await res.json();
5456

5557
return {

0 commit comments

Comments
 (0)