Skip to content

Commit

Permalink
Ww datap 1179 text link update (#464)
Browse files Browse the repository at this point in the history
* Edits the text displayed when the user clicks the "All" button in the date range and changes the target of the "Learn More" link.

* Edits Learn More link to point to 'Past product and issue changes' section

* Updated snapshot for DateFilter.spec.js

---------

Co-authored-by: Bill Whorton <>
  • Loading branch information
wwhorton authored Sep 29, 2023
1 parent 28ba824 commit a738038
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dist/ccdb5.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ccdb5.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/ccdb5.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/ccdb5.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ object-assign
*/

/**
* @remix-run/router v1.0.2
* @remix-run/router v1.8.0
*
* Copyright (c) Remix Software Inc.
*
Expand All @@ -114,7 +114,7 @@ object-assign
*/

/**
* React Router DOM v6.4.2
* React Router DOM v6.15.0
*
* Copyright (c) Remix Software Inc.
*
Expand All @@ -125,7 +125,7 @@ object-assign
*/

/**
* React Router v6.4.2
* React Router v6.15.0
*
* Copyright (c) Remix Software Inc.
*
Expand Down
2 changes: 1 addition & 1 deletion dist/ccdb5.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/components/Filters/DateFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ dayjs.extend(dayjsIsBetween);
dayjs.extend(dayjsUtc);

const WARN_SERIES_BREAK =
'CFPB updated product and issue options' +
' available to consumers in April 2017 ';
'CFPB updated product and issue options in April 2017 and August 2023';

const LEARN_SERIES_BREAK =
'https://files.consumerfinance.gov/f/' +
'documents/201704_cfpb_Summary_of_Product_and_Sub-product_Changes.pdf';
'https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes';

export const DateFilter = () => {
const fieldName = 'date_received';
Expand Down Expand Up @@ -224,6 +222,7 @@ export const DateFilter = () => {
aria-label="Learn more about Product and
Issue changes (opens in new window)"
>
{' '}
Learn More
</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,14 @@ exports[`component::DateFilter snapshot shows a warning for April 2017 1`] = `
</section>
<p>
CFPB updated product and issue options available to consumers in April 2017
CFPB updated product and issue options in April 2017 and August 2023
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://files.consumerfinance.gov/f/documents/201704_cfpb_Summary_of_Product_and_Sub-product_Changes.pdf"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
Expand Down

0 comments on commit a738038

Please sign in to comment.