1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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

As per discussion in #6165, I removed the `passHref` in `Link` as
they're unnecessary.
This commit is contained in:
Resi Respati 2019-02-11 06:00:05 +07:00 committed by Tim Neutkens
parent ac0976affe
commit f8a80f1aa9

View file

@ -8,7 +8,7 @@ type Props = {
}
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>
</Link>
);