Skip to content

Commit

Permalink
chore(home page): updated link in IndexField renderItem function
Browse files Browse the repository at this point in the history
Because no href is provided to the a tag, a button is the better choice.
  • Loading branch information
schettn committed Jul 4, 2021
1 parent 4828ad1 commit 295d619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/examples/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const HomePage: ConnectedPageType = () => {
renderItem={(item, key, navigate) => (
<p key={key}>
Slug: {item.slug} Title: {item.title}{' '}
<a onClick={() => navigate()}>Goto</a>
<button onClick={() => navigate()}>Goto</button>
</p>
)}
/>
Expand Down

0 comments on commit 295d619

Please sign in to comment.