Skip to content

Commit 9fa8b9c

Browse files
committed
fix: proptypes has its own package
1 parent ed61309 commit 9fa8b9c

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"eslint-plugin-jsx-a11y": "^6.2.1",
4242
"eslint-plugin-react": "^7.12.4",
4343
"jest": "^24.1.0",
44+
"prop-types": "^15.7.2",
4445
"react": "^16.8.3",
4546
"watch": "^1.0.2"
4647
},

test/examples/button.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23

34
/**
45
* Button

test/examples/hello-world.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23

34
/**
45
* Says hello to who

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3064,7 +3064,7 @@ prompts@^2.0.1:
30643064
kleur "^3.0.2"
30653065
sisteransi "^1.0.0"
30663066

3067-
prop-types@^15.6.2:
3067+
prop-types@^15.6.2, prop-types@^15.7.2:
30683068
version "15.7.2"
30693069
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
30703070
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==

0 commit comments

Comments
 (0)