CLOSER-Cohorts/archivist

View on GitHub
react/src/components/ConfirmationModal.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function ConfirmationModal has 69 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Major
Found in react/src/components/ConfirmationModal.js - About 2 hrs to fix

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
Open

import React from 'react';

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status