ProgressCircle: fix propTypes (text --> string)

This commit is contained in:
Alex Gleason 2021-10-06 17:06:38 -05:00
parent a917d79ec7
commit cb0a034e85
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -2,7 +2,14 @@ import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class ProgressCircle extends React.PureComponent {
export default class ProgressCircle extends React.PureComponent {
static propTypes = {
progress: PropTypes.number.isRequired,
radius: PropTypes.number,
stroke: PropTypes.number,
title: PropTypes.string,
};
static defaultProps = {
radius: 12,
@ -51,12 +58,3 @@ class ProgressCircle extends React.PureComponent {
}
}
ProgressCircle.propTypes = {
progress: PropTypes.number.isRequired,
radius: PropTypes.number,
stroke: PropTypes.number,
title: PropTypes.text,
};
export default ProgressCircle;