client/app/bundles/course/survey/containers/QuestionFormDialogue/QuestionForm.jsx
Function QuestionForm
has 256 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const QuestionForm = (props) => {
const { disabled, initialValues, onSubmit, intl } = props;
const {
control,
handleSubmit,
- Create a ticketCreate a ticket
Function renderSpecificFields
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderSpecificFields = () => {
const numberOfFilledOptions = options ? countFilledOptions(options) : 0;
return (
<>
- Create a ticketCreate a ticket
Function renderOptionsToDelete
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderOptionsToDelete = () => {
const shouldRenderOptionsToDelete =
deletedOptions && deletedOptions.length > 0;
if (!shouldRenderOptionsToDelete) {
return null;
- Create a ticketCreate a ticket