kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
ProgressCircle: fix propTypes (text --> string)
rodzic
a917d79ec7
commit
cb0a034e85
|
@ -2,7 +2,14 @@ import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
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 = {
|
static defaultProps = {
|
||||||
radius: 12,
|
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;
|
|
||||||
|
|
Ładowanie…
Reference in New Issue