Commit f8a80f1a authored by Resi Respati's avatar Resi Respati Committed by Tim Neutkens

[with-typescript] remove unnecessary `passHref` in `Link` components (#6233)

As per discussion in #6165, I removed the `passHref` in `Link` as
they're unnecessary.
parent ac0976af
...@@ -8,7 +8,7 @@ type Props = { ...@@ -8,7 +8,7 @@ type Props = {
} }
const ListItem: React.FunctionComponent<Props> = ({ data }) => ( const ListItem: React.FunctionComponent<Props> = ({ data }) => (
<Link href={`/detail?id=${data.id}`} passHref> <Link href={`/detail?id=${data.id}`}>
<a>{data.id}: {data.name}</a> <a>{data.id}: {data.name}</a>
</Link> </Link>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment