close modal on view all results

Signed-off-by: Emma Indal <emmai@spotify.com>
This commit is contained in:
Emma Indal
2021-11-11 10:43:05 +01:00
parent 3323bd8a9d
commit e44d62dfe7
@@ -114,7 +114,10 @@ export const Modal = ({ open = true, toggleModal }: SearchModalProps) => {
alignItems="center"
>
<Grid item>
<Link to={`${getSearchLink()}?query=${value}`}>
<Link
onClick={toggleModal}
to={`${getSearchLink()}?query=${value}`}
>
<span className={classes.viewResultsLink}>View Full Results</span>
<Launch color="primary" />
</Link>