Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix React v15.5.0 new deprecation warnings #1171

Merged
merged 2 commits into from
Apr 20, 2017

Conversation

u9lyfish
Copy link
Contributor

React v15.5.0 extracted React.PropTypes and React.createClass into their own packages. Usage of these two modules will result in console errors.

See: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html

This PR migrates components to new styles according to official guide above.

@mention-bot
Copy link

@u9lyfish, thanks for your PR! By analyzing the history of the files in this pull request, we identified @warmhug, @liqi07 and @pingan1927 to be potential reviewers.

@codecov
Copy link

codecov bot commented Apr 19, 2017

Codecov Report

Merging #1171 into master will decrease coverage by 0.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1171      +/-   ##
==========================================
- Coverage   69.73%   69.72%   -0.02%     
==========================================
  Files         218      218              
  Lines        4111     4122      +11     
  Branches     1217     1218       +1     
==========================================
+ Hits         2867     2874       +7     
- Misses       1243     1247       +4     
  Partials        1        1
Flag Coverage Δ
#rn 72.02% <60%> (-0.09%) ⬇️
#web 67.32% <83.33%> (+0.04%) ⬆️
Impacted Files Coverage Δ
components/notice-bar/Marquee.tsx 16.66% <0%> (-0.32%) ⬇️
components/menu/index.tsx 100% <100%> (ø) ⬆️
components/date-picker/index.tsx 93.1% <100%> (+0.24%) ⬆️
components/date-picker/index.web.tsx 92.85% <100%> (+0.26%) ⬆️
components/locale-provider/index.tsx 100% <100%> (ø) ⬆️
components/carousel/index.web.tsx 92.3% <100%> (+0.2%) ⬆️
components/pagination/index.web.tsx 80% <50%> (+0.51%) ⬆️
components/nav-bar/index.tsx 16.66% <50%> (-3.34%) ⬇️
components/pagination/index.tsx 80.48% <50%> (+0.48%) ⬆️
components/range/index.tsx 16.66% <50%> (-3.34%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d5406f...569de54. Read the comment docs.

@paranoidjk paranoidjk requested review from cncolder and himStone April 19, 2017 05:58
Copy link

@himStone himStone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems no problem, but codecov...
@paranoidjk

@paranoidjk
Copy link
Contributor

@bccsafe just ignore codecov sometimes. If you reviewd this PR is ok, them merge it.

@paranoidjk paranoidjk merged commit 2935502 into ant-design:master Apr 20, 2017
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this pull request Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants