app/javascript/components/annotation_form.jsx
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
render() {
const formStyle = {padding: '1rem', backgroundColor: '#4EB9FF'}
const style = {
color: '#00080C', maxWidth: '34rem',
zIndex: 100, position: 'absolute',
Function postData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
postData(e) {
const _this = this;
const request = new XMLHttpRequest();
request.open('POST', '/annotations', true);
request.setRequestHeader('Content-Type', 'application/json')