feat: isComment -> simpleMode
This commit is contained in:
parent
292e43c7e4
commit
b23ebf266f
|
|
@ -16,7 +16,7 @@ const MarkdownContent = memo(function PageContent({
|
|||
onScroll,
|
||||
onMouseEnter,
|
||||
parsedContent,
|
||||
isComment,
|
||||
simpleMode,
|
||||
page,
|
||||
site,
|
||||
withActions,
|
||||
|
|
@ -29,7 +29,7 @@ const MarkdownContent = memo(function PageContent({
|
|||
onScroll?: (scrollTop: number) => void
|
||||
onMouseEnter?: () => void
|
||||
parsedContent?: ReturnType<typeof renderPageContent>
|
||||
isComment?: boolean
|
||||
simpleMode?: boolean
|
||||
page?: ExpandedNote
|
||||
site?: ExpandedCharacter
|
||||
withActions?: boolean
|
||||
|
|
@ -39,7 +39,7 @@ const MarkdownContent = memo(function PageContent({
|
|||
if (parsedContent) {
|
||||
inParsedContent = parsedContent
|
||||
} else if (content) {
|
||||
inParsedContent = renderPageContent(content, false, isComment)
|
||||
inParsedContent = renderPageContent(content, false, simpleMode)
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export default async function SiteFooter({
|
|||
<MarkdownContent
|
||||
className="[&>.prose]:text-sm"
|
||||
content={site.metadata.content.footer}
|
||||
isComment={true}
|
||||
simpleMode={true}
|
||||
/>
|
||||
)}
|
||||
<div className="text-xs sm:flex justify-between sm:space-x-5 sm:space-y-0 space-y-5 sm:items-center">
|
||||
|
|
|
|||
Loading…
Reference in New Issue