radar/twist-v2

View on GitHub
frontend/src/Book/Chapter/Notes/Form.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function Form has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Form: FunctionComponent<FormProps> = (props) => {
  const { elementId, bookPermalink, noteSubmitted } = props;
  const [text, setText] = useState<string>("");
  const [submitNote] = useMutation(submitNoteMutation);
  const submit = (e: React.FormEvent<HTMLFormElement>) => {
Severity: Minor
Found in frontend/src/Book/Chapter/Notes/Form.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status