Skip to content

Commit

Permalink
chore: fix React is not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Oct 27, 2022
1 parent 2175c12 commit 49b923b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.8",
"@types/shallowequal": "^1.1.1",
"@umijs/fabric": "^2.0.8",
"coveralls": "^3.0.6",
"cross-env": "^7.0.2",
"dumi": "^1.1.37",
Expand All @@ -78,8 +77,8 @@
"np": "^7.1.0",
"prettier": "^2.0.5",
"rc-test": "^7.0.9",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"typescript": "^4.0.3"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/PresetPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react';
import type { PresetDate } from './interface';

export interface PresetPanelProps<T> {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"jsx": "preserve",
"jsx": "react",
"declaration": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 49b923b

Please sign in to comment.