mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-27 02:18:34 +08:00
18 lines
543 B
TypeScript
18 lines
543 B
TypeScript
import * as React from 'react';
|
|
import Progress from './progress';
|
|
import warning from 'warning';
|
|
|
|
const AntProgress = Progress;
|
|
|
|
// 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" />;
|
|
};
|
|
|
|
export default AntProgress;
|