Browse Source

Remove ancient prop types (#16705)

* Remove ancient Modal.propTypes.align and Progress.propTypes.size

* Remove linkRender and nameRender from Breadcrumb
pull/16793/head
Marcel Jackwerth 6 years ago
committed by zombieJ
parent
commit
56ff8728d2
  1. 2
      components/breadcrumb/Breadcrumb.tsx
  2. 1
      components/modal/Modal.tsx
  3. 1
      components/progress/progress.tsx

2
components/breadcrumb/Breadcrumb.tsx

@ -59,8 +59,6 @@ export default class Breadcrumb extends React.Component<BreadcrumbProps, any> {
separator: PropTypes.node,
routes: PropTypes.array,
params: PropTypes.object,
linkRender: PropTypes.func,
nameRender: PropTypes.func,
};
componentDidMount() {

1
components/modal/Modal.tsx

@ -154,7 +154,6 @@ export default class Modal extends React.Component<ModalProps, {}> {
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
confirmLoading: PropTypes.bool,
visible: PropTypes.bool,
align: PropTypes.object,
footer: PropTypes.node,
title: PropTypes.node,
closable: PropTypes.bool,

1
components/progress/progress.tsx

@ -58,7 +58,6 @@ export default class Progress extends React.Component<ProgressProps> {
trailColor: PropTypes.string,
format: PropTypes.func,
gapDegree: PropTypes.number,
default: PropTypes.oneOf(['default', 'small']),
};
getPercentNumber() {

Loading…
Cancel
Save