Skip to content

Commit

Permalink
[with-typescript] remove unnecessary passHref in Link components (#…
Browse files Browse the repository at this point in the history
…6233)

As per discussion in #6165, I removed the `passHref` in `Link` as
they're unnecessary.
  • Loading branch information
resir014 authored and timneutkens committed Feb 10, 2019
1 parent ac0976a commit f8a80f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-typescript/components/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit f8a80f1

Please sign in to comment.