mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-02 15:11:00 +00:00
feat: update core deps
This commit is contained in:
@@ -79,6 +79,7 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
})
|
||||
|
||||
if (!isServer) {
|
||||
// add important objects global window for easy debugging
|
||||
;(window as any).recordMap = recordMap
|
||||
;(window as any).block = block
|
||||
}
|
||||
@@ -90,6 +91,7 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
|
||||
let comments: React.ReactNode = null
|
||||
|
||||
// only display comments on blog post pages
|
||||
if (block.type === 'page' && block.parent_table === 'collection') {
|
||||
comments = (
|
||||
<ReactUtterances
|
||||
|
||||
Reference in New Issue
Block a user