Guest User

Untitled

a guest
Jul 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. import React, { Component, PropTypes } from 'react'
  2. import Slide from '../Slide'
  3. import AssistanceProgramList from './AssistanceProgramList'
  4. import { observer } from 'mobx-react'
  5. import { assistanceProgramsVarArray } from '../../../config'
  6. import { ApplicationData } from '../../../stores/ApplicationData'
  7. import InformalNameList from '../InformalNameList'
  8. import { FormattedMessage } from 'react-intl'
  9. import AssistanceTooltips from '../AssistanceTooltips'
  10.  
  11. @observer
  12. class AssistancePrograms extends Component {
  13. render() {
  14. const { applicationData } = this.props
  15. const {
  16. students,
  17. assistancePrograms
  18. } = applicationData
  19.  
  20. return (
  21. <Slide
  22. id="assistance-programs"
  23. nextDisabled={!assistancePrograms.isValid} beginsSection
  24. >
  25. <p className="usa-font-lead">
  26. <FormattedMessage
  27. id="app.slides.assistancePrograms.intro"
  28. description="Intro paragraph"
  29. defaultMessage="If anyone in your household participates in {assistanceTooltips} then {studentList} {studentCount, plural, one {is eligible} other {are eligible}} for free school meals."
  30. values={{
  31. assistanceTooltips: <AssistanceTooltips programs={assistanceProgramsVarArray} />,
  32. studentList: <InformalNameList people={students} />,
  33. studentCount: students.length
  34. }}
  35. />
  36.  
  37. </p>
  38.  
  39. <div className="well">
  40. <p>
  41. <FormattedMessage
  42. id="app.slides.assistancePrograms.household"
  43. description="Household definition"
  44. defaultMessage="A household is defined as a group of people, related or unrelated, that usually live together and share income and expenses."
  45. />
  46. </p>
  47.  
  48. <p>
  49. <FormattedMessage
  50. id="app.slides.assistancePrograms.householdIncludes"
  51. description="Household definition includes"
  52. defaultMessage="This includes grandparents or other extended family members that are living with you. It also includes people that are not currently living with you, but are only away on a temporary basis, like kids that are away at college. It includes people regardless of age or whether they earn or receive income."
  53. />
  54. </p>
  55. <p>
  56. <FormattedMessage
  57. id="app.slides.assistancePrograms.whoToInclude"
  58. description="Household who to include"
  59. defaultMessage="If you need more detailed information, see the ‘WHO SHOULD I INCLUDE IN MY HOUSEHOLD?’ question in Help."
  60. />
  61. </p>
  62. </div>
  63.  
  64. <p><strong>
  65. <FormattedMessage
  66. id="app.slides.assistancePrograms.followingPrograms"
  67. description="Household people who participates in programs"
  68. defaultMessage="If anyone in your household (including you) currently participates in any of the following programs, please select one or more of the checkboxes below. If not, press continue."
  69. />
  70. </strong></p>
  71.  
  72. <AssistanceProgramList applicationData={applicationData} />
  73. </Slide>
  74. )
  75. }
  76. }
  77.  
  78. AssistancePrograms.propTypes = {
  79. applicationData: PropTypes.instanceOf(ApplicationData).isRequired
  80. }
  81.  
  82. export default AssistancePrograms
Add Comment
Please, Sign In to add comment