Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/pages/AssessmentShow/NewQuestionMenu.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function NewQuestionMenu has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const NewQuestionMenu = (props: NewQuestionMenuProps): JSX.Element => {
  const { with: newQuestionUrls } = props;
  const { t } = useTranslation();
  const [creating, setCreating] = useState(false);
  const newQuestionButton = useRef<HTMLButtonElement>(null);

There are no issues that match your filters.

Category
Status