Add default props and prop types to StoreAlertsPlaceholder component

This commit is contained in:
Tiago Noronha 2019-03-06 22:16:38 +00:00
parent 3493481f01
commit 0af40e8214
1 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
* External dependencies
*/
import { Component } from '@wordpress/element';
import PropTypes from 'prop-types';
class StoreAlertsPlaceholder extends Component {
render() {
@ -35,3 +36,14 @@ class StoreAlertsPlaceholder extends Component {
}
export default StoreAlertsPlaceholder;
StoreAlertsPlaceholder.propTypes = {
/**
* Whether multiple alerts exists.
*/
hasMultipleAlerts: PropTypes.bool,
};
StoreAlertsPlaceholder.defaultProps = {
hasMultipleAlerts: false,
};