Skip to content

Commit

Permalink
Improve complaint card link routing
Browse files Browse the repository at this point in the history
The ellipses in complaint cards were using a vanilla anchor tag, causing
them to ignore the app's router and lose the user's search status when
returning to search results.

Addresses DATAP-1224
  • Loading branch information
contolini committed Oct 30, 2023
1 parent 70ea0ed commit b6b83a7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
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.8.0
* @remix-run/router v1.9.0
*
* Copyright (c) Remix Software Inc.
*
Expand All @@ -114,7 +114,7 @@ object-assign
*/

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

/**
* React Router v6.15.0
* React Router v6.16.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.

2 changes: 1 addition & 1 deletion src/components/List/ComplaintCard/ComplaintCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ComplaintCard = ({ row }) => {
{hasOverflow ? (
<span>
{' '}
<a href={url}>[...]</a>
<Link to={url}>[...]</Link>
</span>
) : null}
</div>
Expand Down

0 comments on commit b6b83a7

Please sign in to comment.