2016-04-05 16:51:26 +08:00
|
|
|
import React from 'react';
|
2016-04-05 16:55:52 +08:00
|
|
|
import Progress from './progress';
|
|
|
|
import warning from 'warning';
|
2015-06-14 12:55:44 +08:00
|
|
|
|
2016-04-05 16:55:52 +08:00
|
|
|
const AntProgress = Progress;
|
2016-04-05 16:51:26 +08:00
|
|
|
|
2016-04-05 16:55:52 +08:00
|
|
|
// For downward compatibility
|
|
|
|
AntProgress.Line = (props) => {
|
|
|
|
warning(false, '<Progress.Line /> is deprecated, use <Progress type="line" /> instead.');
|
|
|
|
return <Progress {...props} type="line" />;
|
|
|
|
};
|
|
|
|
AntProgress.Circle = (props) => {
|
|
|
|
warning(false, '<Progress.Circle /> is deprecated, use <Progress type="circle" /> instead.');
|
|
|
|
return <Progress {...props} type="circle" />;
|
2015-06-14 12:55:44 +08:00
|
|
|
};
|
2016-04-05 16:51:26 +08:00
|
|
|
|
2016-04-05 16:55:52 +08:00
|
|
|
export default AntProgress;
|