Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
• Removing: - the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
@@ -4,17 +4,7 @@ import { CX } from '../constants'
|
||||
import Button from './button'
|
||||
import Text from './text'
|
||||
|
||||
export default class ProgressBar extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
progress: PropTypes.oneOfType([
|
||||
PropTypes.number,
|
||||
PropTypes.string,
|
||||
]).isRequired,
|
||||
small: PropTypes.bool,
|
||||
title: PropTypes.string,
|
||||
href: PropTypes.string,
|
||||
}
|
||||
class ProgressBar extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
@@ -59,4 +49,16 @@ export default class ProgressBar extends React.PureComponent {
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ProgressBar.propTypes = {
|
||||
progress: PropTypes.oneOfType([
|
||||
PropTypes.number,
|
||||
PropTypes.string,
|
||||
]).isRequired,
|
||||
small: PropTypes.bool,
|
||||
title: PropTypes.string,
|
||||
href: PropTypes.string,
|
||||
}
|
||||
|
||||
export default ProgressBar
|
||||
Reference in New Issue
Block a user