refactor component/page function returns

This commit is contained in:
jake committed 2022-05-25 09:30:11 -04:00
1 parent ff96ccae44
commit 1e1ecd89ea
31 files changed
+2347 -2281

No files matched your search

+7 -7
View File
@@ -26,14 +26,14 @@ const CodeHybrid = ({ forceBlock, className, children, ...rest }: CodeHybridProp
{children}
</CodeBlock>
);
} else {
// inline code in paragraphs, headings, etc. (never highlighted)
return (
<CodeInline className={className} {...rest}>
{children}
</CodeInline>
);
}
// simple inline code in paragraphs, headings, etc. (never highlighted)
return (
<CodeInline className={className} {...rest}>
{children}
</CodeInline>
);
};
export default CodeHybrid;