fix: remove unused code

This commit is contained in:
Timothy Lin 2022-04-22 17:07:08 -07:00
parent e9fda79ee7
commit 7d64b18b40

View File

@ -24,20 +24,6 @@ const Comments = ({ frontMatter }) => {
let term
const comment = siteMetadata?.comment
if (!comment || Object.keys(comment).length === 0) return <></>
switch (
siteMetadata.comment.giscusConfig.mapping ||
siteMetadata.comment.utterancesConfig.issueTerm
) {
case 'pathname':
term = frontMatter.slug
break
case 'url':
term = window.location.href
break
case 'title':
term = frontMatter.title
break
}
return (
<div id="comment">
{siteMetadata.comment && siteMetadata.comment.provider === 'giscus' && <GiscusComponent />}