client/app/bundles/course/assessment/pages/AssessmentShow/UnavailableAlert.tsx
Function UnavailableAlert
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UnavailableAlert = (props: UnavailableAlertProps): JSX.Element => {
const { for: assessment } = props;
const { t } = useTranslation();
if (!assessment.permissions.canAttempt)
- Create a ticketCreate a ticket