Fix prop type for date in Countdown component.
parent
f957968d41
commit
96510676e3
|
@ -8,7 +8,7 @@ import style from './Countdown.sass';
|
||||||
|
|
||||||
export default class Countdown extends React.Component {
|
export default class Countdown extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
date: PropTypes.object.isRequired,
|
date: PropTypes.instanceOf(moment).isRequired,
|
||||||
locale: PropTypes.string,
|
locale: PropTypes.string,
|
||||||
minimumIntegerDigits: PropTypes.number,
|
minimumIntegerDigits: PropTypes.number,
|
||||||
useGrouping: PropTypes.bool,
|
useGrouping: PropTypes.bool,
|
||||||
|
|
Loading…
Reference in New Issue