react/src/components/ConfirmationModal.js
Function ConfirmationModal
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationModal = (props) => {
const { textToConfirm="", key="prefix", objectType="instrument", onConfirm=()=>{} } = props;
const classes = useStyles();
// getModalStyle is not a pure function, we roll the style only on the first render
const [modalStyle] = React.useState(getModalStyle);
- Create a ticketCreate a ticket
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import React from 'react';
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/