Skip to content

Commit 88fafff

Browse files
committed
fix: lint error
1 parent 70e4a39 commit 88fafff

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

components/Comments.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ import { useState } from 'react'
55
import siteMetadata from '@/data/siteMetadata'
66

77
export default function Comments({ slug }: { slug: string }) {
8-
const [loadComments, setLoadComments] = useState(false);
9-
8+
const [loadComments, setLoadComments] = useState(false)
9+
1010
if (!siteMetadata.comments?.provider) {
11-
return null;
11+
return null
1212
}
1313
return (
14+
<>
1415
{loadComments ? (
1516
<CommentsComponent commentsConfig={siteMetadata.comments} slug={slug} />
16-
) :
17-
(<button onClick={() => setLoadComments(true)}>Load Comments</button>)
18-
}
17+
) : (
18+
<button onClick={() => setLoadComments(true)}>Load Comments</button>
19+
)}
20+
</>
1921
)
2022
}

0 commit comments

Comments
 (0)