Addressing lint errors
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import style from './style.css';
|
||||
|
||||
@@ -10,4 +11,10 @@ const Message = ({ icon, heading, children }) => {
|
||||
</div>;
|
||||
};
|
||||
|
||||
Message.propTypes = {
|
||||
icon: PropTypes.element,
|
||||
heading: PropTypes.string.isRequired,
|
||||
children: PropTypes.element.isRequired
|
||||
};
|
||||
|
||||
export default Message;
|
||||
|
||||
Reference in New Issue
Block a user