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:
parent
ac0976affe
commit
f8a80f1aa9
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue