Addressing lint errors
This commit is contained in:
parent
cca35117f5
commit
cf0c175d0a
@ -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;
|
||||
|
@ -2,10 +2,10 @@ if ('serviceWorker' in navigator && process.env.NODE_ENV === 'production') {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
.then(registration => {
|
||||
console.log('SW registered:', registration);
|
||||
console.log('SW registered:', registration); // eslint-disable-line no-console
|
||||
})
|
||||
.catch(registrationError => {
|
||||
console.log('SW registration failed:', registrationError);
|
||||
console.log('SW registration failed:', registrationError); // eslint-disable-line no-console
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user