Skip to content

Commit

Permalink
Pass manga title into location state for migration search (#731)
Browse files Browse the repository at this point in the history
In case the migration search was started by clicking on a manga card from the migration page the manga title was not passed to the search and thus was missing from the page title
  • Loading branch information
schroda authored Apr 11, 2024
1 parent 9d28057 commit 79a9d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/manga/MangaGridCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const MangaGridCard = ({
{...longPressBind(() => popupState.open(optionButtonRef.current))}
onClick={handleClick}
to={mangaLinkTo}
state={{ mangaTitle: title }}
sx={{ textDecoration: 'none', touchCallout: 'none' }}
>
<Box
Expand Down
1 change: 1 addition & 0 deletions src/components/manga/MangaListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const MangaListCard = ({
<CardActionArea
component={RouterLink}
to={mangaLinkTo}
state={{ mangaTitle: title }}
onClick={handleClick}
{...longPressBind(() => popupState.open(optionButtonRef.current))}
sx={{
Expand Down

0 comments on commit 79a9d1f

Please sign in to comment.