Skip to content

Commit

Permalink
Rm Radiofield, expense and incomeSources submit funcs and components
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonne-hernandez committed Dec 18, 2024
1 parent 9952dd6 commit 2d3d902
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/Components/FollowUpQuestions/FollowUpQuestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const FollowUpQuestions = ({
submitted,
formData,
handleCheckboxChange,
handleExpenseSourcesSubmit,
handleTextfieldChange,
handleRadioButtonChange,
}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ import './QuestionComponentContainer.css';
const QuestionComponentContainer = ({
handleTextfieldChange,
handleContinueSubmit,
handleRadioButtonChange,
handleNoAnswerChange,
handleIncomeStreamsSubmit,
handleExpenseSourcesSubmit,
handleCheckboxChange,
}) => {
const { formData, setFormData } = useContext(Context);
Expand All @@ -57,12 +54,6 @@ const QuestionComponentContainer = ({
);
};

const renderRadiofieldComponent = (question) => {
return (
<Radiofield componentDetails={question.componentDetails} handleRadioButtonChange={handleRadioButtonChange} />
);
};

const renderNoAnswerComponent = (question) => {
return (
<Radiofield
Expand Down Expand Up @@ -126,8 +117,6 @@ const QuestionComponentContainer = ({
submitted={errorController.submittedCount}
formData={formData}
handleCheckboxChange={handleCheckboxChange}
handleExpenseSourcesSubmit={handleExpenseSourcesSubmit}
handleIncomeStreamsSubmit={handleIncomeStreamsSubmit}
handleTextfieldChange={handleTextfieldChange}
/>
)}
Expand Down Expand Up @@ -246,8 +235,6 @@ const QuestionComponentContainer = ({
{renderHeaderAndSubheader()}
{(matchingQuestion.componentDetails.componentType === 'Textfield' &&
createComponent(renderTextfieldComponent(matchingQuestion))) ||
(matchingQuestion.componentDetails.componentType === 'Radiofield' &&
createComponent(renderRadiofieldComponent(matchingQuestion))) ||
(matchingQuestion.componentDetails.componentType === 'PreferNotToAnswer' &&
createComponent(renderNoAnswerComponent(matchingQuestion))) ||
(matchingQuestion.componentDetails.componentType === 'BasicCheckboxGroup' &&
Expand Down

0 comments on commit 2d3d902

Please sign in to comment.