Skip to content

Commit

Permalink
move button text to content.json
Browse files Browse the repository at this point in the history
  • Loading branch information
coope93 committed Dec 27, 2024
1 parent 6c305f8 commit 4dbab61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ const FacilitySearch = props => {
{loadingMoreFacilities && loader()}
{hasMoreFacilities() && (
<va-button
text="Load more facilities"
text={content['form-facilities-load-more-button']}
onClick={showMoreFacilities}
secondary
uswds
/>
)}
</>
Expand Down
1 change: 1 addition & 0 deletions src/applications/caregivers/locales/en/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"form-email-label": "%s email address",
"form-facilities-search-label": "City, state or postal code",
"form-facilities-search-hint": "Enter a city, state, or postal code",
"form-facilities-load-more-button": "Load more facilities",
"form-name-hint": "Enter the %s legal name that\u2019s documented with the Social Security Administration (SSA) or Internal Revenue Service (IRS).",
"form-phone-label": "%s phone number",
"form-phone-hint": "Enter a 10-digit phone number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ describe('CG <FacilitySearch>', () => {
loader: container.querySelector('va-loading-indicator'),
radioList: container.querySelector('va-radio'),
searchInputError: queryByRole('alert'),
moreFacilities: container.querySelector(
'va-button[text="Load more facilities"]',
),
moreFacilities: container.querySelector(`va-button`),
formNavButtons: {
back: getByText('Back'),
forward: getByText('Continue'),
Expand Down

0 comments on commit 4dbab61

Please sign in to comment.