radar/twist-v2

View on GitHub
frontend/src/Book/Note/Comments/Comment.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function Comment has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Comment: FunctionComponent<CommentType> = (props) => {
  const { id, user, createdAt } = props;
  const [text, setText] = useState<string>(props.text);
  const [showForm, setShowForm] = useState<boolean>(false);
  const [hidden, setHidden] = useState<boolean>(false);
Severity: Minor
Found in frontend/src/Book/Note/Comments/Comment.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status