1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04:00

use new giscus options

This commit is contained in:
2022-11-07 08:38:02 -05:00
parent 775b5efef4
commit f51d48f622
4 changed files with 139 additions and 121 deletions

View File

@@ -58,11 +58,7 @@ const Note = ({ frontMatter, source }: InferGetStaticPropsType<typeof getStaticP
{!frontMatter.noComments && (
<InView rootMargin="140px" triggerOnce fallbackInView>
{({ inView, ref }) => (
<div id="comments" ref={ref}>
{inView && <Comments title={frontMatter.title} />}
</div>
)}
{({ inView, ref }) => <div ref={ref}>{inView && <Comments title={frontMatter.title} />}</div>}
</InView>
)}
</>