Add default props and prop types to StoreAlertsPlaceholder component
This commit is contained in:
parent
3493481f01
commit
0af40e8214
|
@ -3,6 +3,7 @@
|
||||||
* External dependencies
|
* External dependencies
|
||||||
*/
|
*/
|
||||||
import { Component } from '@wordpress/element';
|
import { Component } from '@wordpress/element';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
class StoreAlertsPlaceholder extends Component {
|
class StoreAlertsPlaceholder extends Component {
|
||||||
render() {
|
render() {
|
||||||
|
@ -35,3 +36,14 @@ class StoreAlertsPlaceholder extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default StoreAlertsPlaceholder;
|
export default StoreAlertsPlaceholder;
|
||||||
|
|
||||||
|
StoreAlertsPlaceholder.propTypes = {
|
||||||
|
/**
|
||||||
|
* Whether multiple alerts exists.
|
||||||
|
*/
|
||||||
|
hasMultipleAlerts: PropTypes.bool,
|
||||||
|
};
|
||||||
|
|
||||||
|
StoreAlertsPlaceholder.defaultProps = {
|
||||||
|
hasMultipleAlerts: false,
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue