Skip to content

Commit 817924f

Browse files
fix: react imports
1 parent 6ec33cb commit 817924f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+107
-126
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "module",
1414
"scripts": {
1515
"build": "turbo build --filter='./packages/*'",
16-
"dev": "turbo dev --concurrency 50 --continue",
16+
"dev": "turbo dev --concurrency 50 --continue --filter='./packages/*'",
1717
"clean": "turbo clean",
1818
"test": "turbo test",
1919
"test:format": "prettier --check \"**/*.{js,ts,tsx}\"",

packages/react-notion-x/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
"date-fns": "catalog:",
7777
"format-number": "catalog:",
7878
"lodash.throttle": "catalog:",
79+
"react": "catalog:",
80+
"react-dom": "catalog:",
7981
"react-pdf": "^9.1.1"
8082
},
8183
"peerDependencies": {

packages/react-notion-x/src/block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getTextContent,
88
uuidToId
99
} from 'notion-utils'
10-
import * as React from 'react'
10+
import React from 'react'
1111

1212
import { AssetWrapper } from './components/asset-wrapper'
1313
import { Audio } from './components/audio'

packages/react-notion-x/src/components/asset-wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type * as React from 'react'
1+
import type React from 'react'
22
import { type BaseContentBlock, type Block } from 'notion-types'
33
import { parsePageId } from 'notion-utils'
44

packages/react-notion-x/src/components/asset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type * as React from 'react'
1+
import type React from 'react'
22
import { type BaseContentBlock, type Block } from 'notion-types'
33
import { getTextContent } from 'notion-utils'
44

packages/react-notion-x/src/components/audio.tsx

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

44
import { useNotionContext } from '../context'

packages/react-notion-x/src/components/checkbox.tsx

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

33
import CheckIcon from '../icons/check'
44

packages/react-notion-x/src/components/eoi.tsx

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

44
import { useNotionContext } from '../context'

packages/react-notion-x/src/components/file.tsx

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

44
import { useNotionContext } from '../context'

packages/react-notion-x/src/components/google-drive.tsx

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

44
import { useNotionContext } from '../context'

0 commit comments

Comments
 (0)