Addressing lint errors
This commit is contained in:
parent
cca35117f5
commit
cf0c175d0a
@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import style from './style.css';
|
import style from './style.css';
|
||||||
|
|
||||||
@ -10,4 +11,10 @@ const Message = ({ icon, heading, children }) => {
|
|||||||
</div>;
|
</div>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Message.propTypes = {
|
||||||
|
icon: PropTypes.element,
|
||||||
|
heading: PropTypes.string.isRequired,
|
||||||
|
children: PropTypes.element.isRequired
|
||||||
|
};
|
||||||
|
|
||||||
export default Message;
|
export default Message;
|
||||||
|
@ -2,10 +2,10 @@ if ('serviceWorker' in navigator && process.env.NODE_ENV === 'production') {
|
|||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
navigator.serviceWorker.register('/sw.js')
|
navigator.serviceWorker.register('/sw.js')
|
||||||
.then(registration => {
|
.then(registration => {
|
||||||
console.log('SW registered:', registration);
|
console.log('SW registered:', registration); // eslint-disable-line no-console
|
||||||
})
|
})
|
||||||
.catch(registrationError => {
|
.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