Skip to content

Commit d7b9033

Browse files
🐞
1 parent c039a89 commit d7b9033

25 files changed

+80
-80
lines changed

examples/full/components/Loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import type * as React from 'react'
22

33
import { LoadingIcon } from './LoadingIcon'
44
import styles from './styles.module.css'

examples/full/components/NotionPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import * as React from 'react'
21
import dynamic from 'next/dynamic'
32
import Head from 'next/head'
43
// import Image from 'next/image'
54
import Link from 'next/link'
65
import { useRouter } from 'next/router'
7-
8-
import { ExtendedRecordMap } from 'notion-types'
6+
import { type ExtendedRecordMap } from 'notion-types'
97
import { getPageTitle } from 'notion-utils'
8+
import * as React from 'react'
109
import { NotionRenderer } from 'react-notion-x'
1110
import TweetEmbed from 'react-tweet-embed'
1211

examples/full/lib/notion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Client } from '@notionhq/client'
22
import { NotionAPI } from 'notion-client'
33
import { NotionCompatAPI } from 'notion-compat'
4-
import { ExtendedRecordMap, SearchParams, SearchResults } from 'notion-types'
4+
import { type ExtendedRecordMap, type SearchParams, type SearchResults } from 'notion-types'
55

66
import { previewImagesEnabled, useOfficialNotionAPI } from './config'
77
import { getPreviewImageMap } from './preview-images'

examples/full/lib/preview-images.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import got from 'got'
22
import lqip from 'lqip-modern'
3-
import { ExtendedRecordMap, PreviewImage, PreviewImageMap } from 'notion-types'
3+
import { type ExtendedRecordMap, type PreviewImage, type PreviewImageMap } from 'notion-types'
44
import { getPageImageUrls } from 'notion-utils'
55
import pMap from 'p-map'
66
import pMemoize from 'p-memoize'

examples/full/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

examples/full/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"analyze": "cross-env ANALYZE=true next build",
1111
"analyze:server": "cross-env BUNDLE_ANALYZE=server next build",
1212
"analyze:browser": "cross-env BUNDLE_ANALYZE=browser next build",
13-
"deploy": "vercel deploy"
13+
"deploy": "vercel deploy",
14+
"test": "run-s test:*",
15+
"test:lint": "eslint ."
1416
},
1517
"dependencies": {
1618
"@notionhq/client": "^2.2.15",

examples/full/pages/[pageId].tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import * as React from 'react'
2-
3-
import { ExtendedRecordMap } from 'notion-types'
1+
import { type ExtendedRecordMap } from 'notion-types'
42
import { getAllPagesInSpace } from 'notion-utils'
3+
import * as React from 'react'
54
import { defaultMapPageUrl } from 'react-notion-x'
65

7-
import * as notion from '../lib/notion'
86
import { NotionPage } from '../components/NotionPage'
97
import {
108
isDev,
@@ -13,6 +11,7 @@ import {
1311
rootNotionPageId,
1412
rootNotionSpaceId
1513
} from '../lib/config'
14+
import * as notion from '../lib/notion'
1615

1716
export const getStaticProps = async (context) => {
1817
const pageId = context.params.pageId as string

examples/full/pages/_app.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
import * as React from 'react'
2-
31
// used for rendering equations (optional)
42
import 'katex/dist/katex.min.css'
53
// used for code syntax highlighting (optional)
64
import 'prismjs/themes/prism-tomorrow.css'
75
// core styles shared by all of react-notion-x (required)
86
import 'react-notion-x/src/styles.css'
9-
107
// force push
118
import '../styles/globals.css'
129

10+
import * as React from 'react'
11+
1312
function MyApp({ Component, pageProps }) {
1413
return <Component {...pageProps} />
1514
}

examples/full/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as React from 'react'
21
import Document, { Head, Html, Main, NextScript } from 'next/document'
2+
import * as React from 'react'
33

44
export default class MyDocument extends Document {
55
render() {

examples/full/pages/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1+
import { type ExtendedRecordMap } from 'notion-types'
12
import * as React from 'react'
23

3-
import { ExtendedRecordMap } from 'notion-types'
4-
5-
import * as notion from '../lib/notion'
64
import { NotionPage } from '../components/NotionPage'
75
import {
86
previewImagesEnabled,
97
rootDomain,
108
rootNotionPageId
119
} from '../lib/config'
10+
import * as notion from '../lib/notion'
1211

1312
export const getStaticProps = async () => {
1413
const pageId = rootNotionPageId

0 commit comments

Comments
 (0)