Skip to content

Commit

Permalink
[with-typescript] remove unnecessary passHref in Link components
Browse files Browse the repository at this point in the history
As per discussion in vercel#6165, I removed the `passHref` in `Link` as
they're unnecessary.
  • Loading branch information
resir014 committed Feb 10, 2019
1 parent bfd2d08 commit 6bdb77b
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 6bdb77b

Please sign in to comment.