Skip to content

Commit

Permalink
Remove hasExpenses, acuteHHConditions from questions.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonne-hernandez committed Dec 18, 2024
1 parent a9f56c4 commit 54a99fd
Showing 1 changed file with 0 additions and 70 deletions.
70 changes: 0 additions & 70 deletions src/Assets/questions.tsx
Original file line number Diff line number Diff line change
@@ -1,63 +1,13 @@
import {
radiofieldHasError,
householdAssetsHasError,
benefitsHasError,
selectHasError,
displayReferralSourceHelperText,
signUpOptionsHaveError,
acuteHHConditionsHasError,
displayBenefitsHelperText,
displayHouseholdAssetsHelperText,
otherReferalSourceHelperText,
} from './validationFunctions.tsx';
import { FormattedMessage } from 'react-intl';
import type { QuestionName, Question } from '../Types/Questions.ts';
import HelpButton from '../Components/HelpBubbleIcon/HelpButton.tsx';

const questions: Record<QuestionName, Question> = {
hasExpenses: {
name: 'hasExpenses',
header: <FormattedMessage id="qcc.about_household" defaultMessage="Tell us about your household" />,
question: (
<>
<div style={{ marginBottom: '-16px' }}>
<FormattedMessage id="questions.hasExpenses" defaultMessage="Does your household have any expenses?" />
<HelpButton
helpText="Add up expenses for everyone who lives in your home. This includes costs like child care, child support, rent, medical expenses, heating bills, and more. We will ask only about expenses that may affect benefits. We will not ask about expenses such as food since grocery bills do not affect benefits."
helpId="questions.hasExpenses-description"
/>
</div>
</>
),
questionDescription: (
<FormattedMessage
id="questions.hasExpenses-description-additional"
defaultMessage="Expenses can affect benefits! We can be more accurate if you tell us key expenses like your rent or mortgage, utilities, and child care."
/>
),
componentDetails: {
componentType: 'Radiofield',
ariaLabel: 'questions.hasExpenses-ariaLabel',
inputName: 'hasExpenses',
inputError: radiofieldHasError,
},
followUpQuestions: [
{
question: (
<FormattedMessage
id="questions.hasExpenses-a"
defaultMessage="What type of expense has your household had most recently?"
/>
),
name: 'expenses',
componentDetails: {
componentType: 'ExpenseBlock',
ariaLabel: 'questions.hasExpenses-a-ariaLabel',
inputName: 'expenses',
},
},
],
},
householdAssets: {
name: 'householdAssets',
header: <FormattedMessage id="qcc.about_household" defaultMessage="Tell us about your household" />,
Expand Down Expand Up @@ -85,26 +35,6 @@ const questions: Record<QuestionName, Question> = {
required: true,
},
},
acuteHHConditions: {
name: 'acuteHHConditions',
header: (
<FormattedMessage
id="qcc.tell-us-final-text"
defaultMessage="Tell us some final information about your household."
/>
),
question: (
<FormattedMessage
id="questions.acuteHHConditions"
defaultMessage="Is anyone in your household in immediate need of help with any of the following?"
/>
),
componentDetails: {
componentType: 'OptionCardGroup',
inputName: 'acuteHHConditions',
inputError: acuteHHConditionsHasError,
},
},
signUpInfo: {
name: 'signUpInfo',
header: (
Expand Down

0 comments on commit 54a99fd

Please sign in to comment.