Pass manga title into location state for migration search (#731)

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
This commit is contained in:
schroda
2024-04-11 02:02:40 +02:00
committed by GitHub
parent 9d280577be
commit 79a9d1f246
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -45,6 +45,7 @@ export const MangaListCard = ({
<CardActionArea
component={RouterLink}
to={mangaLinkTo}
state={{ mangaTitle: title }}
onClick={handleClick}
{...longPressBind(() => popupState.open(optionButtonRef.current))}
sx={{